I have an Android project in the Eclipse IDE that worked. After some import and tests, I get the error message: java.lang.NoClassDefFoundError .
In my project, I have two packages: the main and the second with some classes.
When I try to instantiate an object from the second class of the package in the main activity class, I get this error.
Here is logcat:
FATAL EXCEPTION: main java.lang.NoClassDefFoundError: com.neurospeech.wsclient.MDPIforEditorialBoard at milos.mdpi.Journals.<init>(Journals.java:41) at java.lang.Class.newInstanceImpl(Native Method) at java.lang.Class.newInstance(Class.java:1409) at android.app.Instrumentation.newActivity(Instrumentation.java:1040) at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1777) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1893) at android.app.ActivityThread.access$1500(ActivityThread.java:135) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1054) at android.os.Handler.dispatchMessage(Handler.java:99) at android.os.Looper.loop(Looper.java:150) at android.app.ActivityThread.main(ActivityThread.java:4389) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:507) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:849) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:607) at dalvik.system.NativeStart.main(Native Method)
Found a solution to my problem:
The solution can be found here: http://android.foxykeep.com/dev/how-to-fix-the-classdefnotfounderror-with-adt-17
android noclassdeffounderror
Miloลก Mar 26 2018-12-12T00: 00Z
source share