Reputation: 965
Hi I'm new to android development. I took over a project when someone left my company recently and I was able to build and run the app ok. Since running an update on eclipse I can no longer run the app, I get this error:
07-29 10:27:13.843: E/AndroidRuntime(314): FATAL EXCEPTION: main
07-29 10:27:13.843: E/AndroidRuntime(314): java.lang.NoClassDefFoundError: uk.co.mosquitodigital.panic.dao.DaoMaster
07-29 10:27:13.843: E/AndroidRuntime(314): at uk.co.mosquitodigital.panic.dao.DaoMaster$OpenHelper.onCreate(DaoMaster.java:48)
07-29 10:27:13.843: E/AndroidRuntime(314): at android.database.sqlite.SQLiteOpenHelper.getWritableDatabase(SQLiteOpenHelper.java:106)
07-29 10:27:13.843: E/AndroidRuntime(314): at uk.co.mosquitodigital.panic.PanicApplication.onCreate(PanicApplication.java:64)
07-29 10:27:13.843: E/AndroidRuntime(314): at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:969)
07-29 10:27:13.843: E/AndroidRuntime(314): at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4244)
07-29 10:27:13.843: E/AndroidRuntime(314): at android.app.ActivityThread.access$3000(ActivityThread.java:125)
07-29 10:27:13.843: E/AndroidRuntime(314): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2071)
07-29 10:27:13.843: E/AndroidRuntime(314): at android.os.Handler.dispatchMessage(Handler.java:99)
07-29 10:27:13.843: E/AndroidRuntime(314): at android.os.Looper.loop(Looper.java:123)
07-29 10:27:13.843: E/AndroidRuntime(314): at android.app.ActivityThread.main(ActivityThread.java:4627)
07-29 10:27:13.843: E/AndroidRuntime(314): at java.lang.reflect.Method.invokeNative(Native Method)
07-29 10:27:13.843: E/AndroidRuntime(314): at java.lang.reflect.Method.invoke(Method.java:521)
07-29 10:27:13.843: E/AndroidRuntime(314): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868)
07-29 10:27:13.843: E/AndroidRuntime(314): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)
07-29 10:27:13.843: E/AndroidRuntime(314): at dalvik.system.NativeStart.main(Native Method)
Upvotes: 2
Views: 500
Reputation: 33534
1. First thing you must do is to Clean the project.
2. Properly configure the Build Path.
3. If there are external Libraries, then create a "libs" folder in your project, and then configure the Build Path.
4. Restart your Eclipse
Upvotes: 0
Reputation: 82543
There are only three reasons you will ever get this error:
Mostly, such errors occur because newer versions of the ADT require all external jars to be in the libs folder. Your colleague was probably on a different version than you, and hence the error.
Upvotes: 2