--
You received this message because you are subscribed to the Google Groups "privly-mobile" group.
To unsubscribe from this group and stop receiving emails from it, send an email to privly-mobil...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
01-21 22:13:46.945: W/dalvikvm(16508): threadid=1: uncaught exception occurred01-21 22:13:46.946: W/System.err(16508): java.lang.NoClassDefFoundError: ly.priv.mobile.gui.MainActivity01-21 22:13:46.947: W/System.err(16508): at ly.priv.mobile.gui.LoginActivity$CheckLoginTask.onPostExecute(LoginActivity.java:262)01-21 22:13:46.947: W/System.err(16508): at ly.priv.mobile.gui.LoginActivity$CheckLoginTask.onPostExecute(LoginActivity.java:1)01-21 22:13:46.947: W/System.err(16508): at android.os.AsyncTask.finish(AsyncTask.java:631)01-21 22:13:46.948: W/System.err(16508): at android.os.AsyncTask.access$600(AsyncTask.java:177)01-21 22:13:46.948: W/System.err(16508): at android.os.AsyncTask$InternalHandler.handleMessage(AsyncTask.java:644)01-21 22:13:46.948: W/System.err(16508): at android.os.Handler.dispatchMessage(Handler.java:107)01-21 22:13:46.948: W/System.err(16508): at android.os.Looper.loop(Looper.java:194)01-21 22:13:46.948: W/System.err(16508): at android.app.ActivityThread.main(ActivityThread.java:5391)01-21 22:13:46.949: W/System.err(16508): at java.lang.reflect.Method.invokeNative(Native Method)01-21 22:13:46.949: W/System.err(16508): at java.lang.reflect.Method.invoke(Method.java:525)01-21 22:13:46.949: W/System.err(16508): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:833)01-21 22:13:46.949: W/System.err(16508): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:600)01-21 22:13:46.950: W/System.err(16508): at dalvik.system.NativeStart.main(Native Method)01-21 22:13:46.950: W/dalvikvm(16508): threadid=1: calling UncaughtExceptionHandler01-21 22:13:46.952: E/AndroidRuntime(16508): FATAL EXCEPTION: main01-21 22:13:46.952: E/AndroidRuntime(16508): java.lang.NoClassDefFoundError: ly.priv.mobile.gui.MainActivity01-21 22:13:46.952: E/AndroidRuntime(16508): at ly.priv.mobile.gui.LoginActivity$CheckLoginTask.onPostExecute(LoginActivity.java:262)01-21 22:13:46.952: E/AndroidRuntime(16508): at ly.priv.mobile.gui.LoginActivity$CheckLoginTask.onPostExecute(LoginActivity.java:1)01-21 22:13:46.952: E/AndroidRuntime(16508): at android.os.AsyncTask.finish(AsyncTask.java:631)01-21 22:13:46.952: E/AndroidRuntime(16508): at android.os.AsyncTask.access$600(AsyncTask.java:177)01-21 22:13:46.952: E/AndroidRuntime(16508): at android.os.AsyncTask$InternalHandler.handleMessage(AsyncTask.java:644)01-21 22:13:46.952: E/AndroidRuntime(16508): at android.os.Handler.dispatchMessage(Handler.java:107)01-21 22:13:46.952: E/AndroidRuntime(16508): at android.os.Looper.loop(Looper.java:194)01-21 22:13:46.952: E/AndroidRuntime(16508): at android.app.ActivityThread.main(ActivityThread.java:5391)01-21 22:13:46.952: E/AndroidRuntime(16508): at java.lang.reflect.Method.invokeNative(Native Method)01-21 22:13:46.952: E/AndroidRuntime(16508): at java.lang.reflect.Method.invoke(Method.java:525)01-21 22:13:46.952: E/AndroidRuntime(16508): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:833)01-21 22:13:46.952: E/AndroidRuntime(16508): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:600)01-21 22:13:46.952: E/AndroidRuntime(16508): at dalvik.system.NativeStart.main(Native Method)01-21 22:13:49.830: I/Process(16508): Sending signal. PID: 16508 SIG: 9
Right Click on your project -> Build Path -> Configure Build Path -> Order and Export Tab.
Make sure that "Android Private Libraries" is checked for Export.
If you've added any libraries from the libs/ folder, remove them as they are automatically added in the "Android Private Libraries" section.
But I hav already checked my android private libraries:
The error means that Android is unable to look for the MainActivity class.
java.lang.NoClassDefFoundError: ly.priv.mobile.gui.MainActivity
Do you happen to have this file in your local repo ?
Yeah I have MainActivity.java in my local repo. Earlier my order of execution of the project was like that it was first compiling the src folder and then the gen folder due to which JVM was not able to recognize a particular class (that was MainActivity only) at runtime while executing the LoginActivity.java.I basically fixed the problem by interchanging the order the order of src and gen in (JavaBuildPath->Import and Export-).