Topic
  • 5 replies
  • Latest Post - ‏2012-04-10T07:12:56Z by SystemAdmin
SystemAdmin
SystemAdmin
570 Posts

Pinned topic [Solved] Error when executing application on Android Device

‏2012-04-02T09:33:37Z |
I'm hitting the following error when trying to run the BasicApp and Worklight Starter on my Android 3.2 device which requires me to force close. The HelloWorklight example runs fine though.

"The application(process XXX) has stopped unexpectedly".

Details:

1) Running ADT-17 (read somewhere this version of ADT has problems?)
2) Running Android 3.2 tablet hardware
3) Worklight version 4.2.1
4) Eclipse version Indigo

Error stack is as below:

+04-02 17:22:03.119: W/dalvikvm(15535): Unable to resolve superclass of Lcom/worklight/androidgap/WLDroidGap; (99)
04-02 17:22:03.119: W/dalvikvm(15535): Link of class 'Lcom/worklight/androidgap/WLDroidGap;' failed
04-02 17:22:03.119: W/dalvikvm(15535): Unable to resolve superclass of Lcom/BasicApp/BasicApp; (111)
04-02 17:22:03.119: W/dalvikvm(15535): Link of class 'Lcom/BasicApp/BasicApp;' failed
04-02 17:22:03.119: W/dalvikvm(15535): threadid=1: thread exiting with uncaught exception (group=0x4001d760)
04-02 17:22:03.129: E/AndroidRuntime(15535): FATAL EXCEPTION: main
04-02 17:22:03.129: E/AndroidRuntime(15535): java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.BasicApp/com.BasicApp.BasicApp}: java.lang.ClassNotFoundException: com.BasicApp.BasicApp in loader dalvik.system.PathClassLoader[/data/app/com.BasicApp-2.apk]
04-02 17:22:03.129: E/AndroidRuntime(15535): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1711)
04-02 17:22:03.129: E/AndroidRuntime(15535): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1803)
04-02 17:22:03.129: E/AndroidRuntime(15535): at android.app.ActivityThread.access$500(ActivityThread.java:122)
04-02 17:22:03.129: E/AndroidRuntime(15535): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1022)
04-02 17:22:03.129: E/AndroidRuntime(15535): at android.os.Handler.dispatchMessage(Handler.java:99)
04-02 17:22:03.129: E/AndroidRuntime(15535): at android.os.Looper.loop(Looper.java:132)
04-02 17:22:03.129: E/AndroidRuntime(15535): at android.app.ActivityThread.main(ActivityThread.java:4083)
04-02 17:22:03.129: E/AndroidRuntime(15535): at java.lang.reflect.Method.invokeNative(Native Method)
04-02 17:22:03.129: E/AndroidRuntime(15535): at java.lang.reflect.Method.invoke(Method.java:491)
04-02 17:22:03.129: E/AndroidRuntime(15535): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:852)
04-02 17:22:03.129: E/AndroidRuntime(15535): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:610)
04-02 17:22:03.129: E/AndroidRuntime(15535): at dalvik.system.NativeStart.main(Native Method)
04-02 17:22:03.129: E/AndroidRuntime(15535): Caused by: java.lang.ClassNotFoundException: com.BasicApp.BasicApp in loader dalvik.system.PathClassLoader[/data/app/com.BasicApp-2.apk]
04-02 17:22:03.129: E/AndroidRuntime(15535): at dalvik.system.PathClassLoader.findClass(PathClassLoader.java:251)
04-02 17:22:03.129: E/AndroidRuntime(15535): at java.lang.ClassLoader.loadClass(ClassLoader.java:540)
04-02 17:22:03.129: E/AndroidRuntime(15535): at java.lang.ClassLoader.loadClass(ClassLoader.java:500)
04-02 17:22:03.129: E/AndroidRuntime(15535): at android.app.Instrumentation.newActivity(Instrumentation.java:1022)
04-02 17:22:03.129: E/AndroidRuntime(15535): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1702)
04-02 17:22:03.129: E/AndroidRuntime(15535): ... 11 more
+
  • SystemAdmin
    SystemAdmin
    570 Posts

    Re: [Solved] Error when executing application on Android Device

    ‏2012-04-02T09:39:06Z  
    Oh yes, forgot to add that it deploys and runs correctly on the Worklight server.
  • IdanAdar
    IdanAdar
    288 Posts

    Re: [Solved] Error when executing application on Android Device

    ‏2012-04-02T10:22:17Z  
    This error does look like the error that is received when using ADT17.
    You can either:
    1. Uninstall ADT17 and install ADT16 instead (SDK as well)
    2. Wait a short while longer as a patch is in the process of being released.
  • SystemAdmin
    SystemAdmin
    570 Posts

    Re: [Solved] Error when executing application on Android Device

    ‏2012-04-09T02:56:37Z  
    Hi Idan,

    Can you advise when the patch will be available?

    Thanks.

    ian
  • IdanAdar
    IdanAdar
    288 Posts

    Re: [Solved] Error when executing application on Android Device

    ‏2012-04-09T04:51:22Z  
    It is released.
    Re-install Worklight Studio from within Eclipse as before.

    Please let me know if it has solved your issue.
  • SystemAdmin
    SystemAdmin
    570 Posts

    Re: [Solved] Error when executing application on Android Device

    ‏2012-04-10T07:12:56Z  
    New version seems to have solved the problem. Thanks.