Eclipse ADT rev 22 Crashes My App

It was one of those days, you realize there is an update and you think, yeah sure, what can go wrong.

37877198

So the problem at hand. Running Eclipse (Juno, version shouldn’t matter) with ADT, Android Development Tools, and you updated the ADT to rev 22. You’ll get numerous errors if you’re very unlucky.  When you run your app it’ll failed and the logcat showing errors. The main error:

java.lang.NoClassDefFoundError

The .classpath file will also have changed.

Solution:

– Right-click your project -> Properties ->  Java Build Path > Order and Export tab

– Check the “Android Private Libraries”

– Then “Project -> Clean”

Note if it doesn’t work: Depending on the situation, some have reported they needed to checked everything in “Order and Export tab”

Thank to the error fix from Google plus comments:

https://plus.google.com/110261362522479570091/posts/4a55Afj2DrM

Posted in Android, ErrorFix Tagged with: , ,