Gson NoClassDefFoundError after ADT and SDK Tools update to v17

I faced a similar problem today. This fixed it for me: Remove all Android Library projects and external jars from the build path. Create a folder named ‘libs’ in your project. Place all external .jars in that folder, the ADT should now place them under ‘Android Dependencies’. Re-import all your previous Android Library projects the … Read more

java.lang.NoClassDefFoundError: javax/servlet/jsp/jstl/core/Config

java.lang.NoClassDefFoundError: javax/servlet/jsp/jstl/core/Config As the package name hints, the mentioned class is part of JSTL. The exception is clearly telling that the class definition file of the mentioned class cannot be found in the runtime classpath. I.e. the Config.class file or at least the JAR file containing that class is missing in webapp’s runtime classpath. JSTL … Read more

Unable instantiate android.gms.maps.MapFragment

In IntelliJ IDEA (updated for IntelliJ 12): Create a file ~/android-sdk/extras/google/google_play_services/libproject/google-play-services_lib/src/dummy.java containing class dummy {}. File->Import Module-> ~/android-sdk/extras/google/google_play_services/libproject/google-play-services_lib Create Module from Existing Sources Next->Next->Next->Next->Finish File->Project Structure->Modules->YourApp +->Module Dependency->Google-play-services_lib (The + button is in the top right corner of the dialog.) +->Jars or directories->~/android-sdk/extras/google/google_play_services/libproject/google-play-services_lib/libs/google-play-services.jar Use the up/down arrows to move <Module source> to the bottom of … Read more

NoClassDefFoundError: wrong name

Exception in thread “main” java.lang.NoClassDefFoundError: ClientREST So, you ran it as java ClientREST. It’s expecting a ClientREST.class without any package. (wrong name: clientrest/ClientREST) Hey, the class is trying to tell you that it has a package clientrest;. You need to run it from the package root on. Go one folder up so that you’re in … Read more