unfortunately app has stopped - Eclipse

  • Replies:3
  • OpenNot stickiedUnanswered
  • Forum posts: 1

Mar 24, 2014 1:08:00 AM via Website

Please help, I am trying to test a phoneGap App on Android Emulator SDK using Eclipse.
I am getting the error "UNFORTUNATELY APP HAS STOPPED"

here is my logCat:

103-23 23:56:20.494: D/AndroidRuntime(273): Shutting down VM
203-23 23:56:20.494: W/dalvikvm(273): threadid=1: thread exiting with uncaught exception (group=0x4001d800)
303-23 23:56:20.544: E/AndroidRuntime(273): FATAL EXCEPTION: main
403-23 23:56:20.544: E/AndroidRuntime(273): java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{org.apache.cordova.test/org.apache.cordova.test.actions.CordovaWebViewTestActivity}: java.lang.ClassNotFoundException: org.apache.cordova.test.actions.CordovaWebViewTestActivity in loader dalvik.system.PathClassLoader[/system/framework/android.test.runner.jar:/data/app/org.apache.cordova.test-2.apk]
503-23 23:56:20.544: E/AndroidRuntime(273): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2585)
603-23 23:56:20.544: E/AndroidRuntime(273): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2679)
703-23 23:56:20.544: E/AndroidRuntime(273): at android.app.ActivityThread.access$2300(ActivityThread.java:125)
803-23 23:56:20.544: E/AndroidRuntime(273): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2033)
903-23 23:56:20.544: E/AndroidRuntime(273): at android.os.Handler.dispatchMessage(Handler.java:99)
1003-23 23:56:20.544: E/AndroidRuntime(273): at android.os.Looper.loop(Looper.java:123)
1103-23 23:56:20.544: E/AndroidRuntime(273): at android.app.ActivityThread.main(ActivityThread.java:4627)
1203-23 23:56:20.544: E/AndroidRuntime(273): at java.lang.reflect.Method.invokeNative(Native Method)
1303-23 23:56:20.544: E/AndroidRuntime(273): at java.lang.reflect.Method.invoke(Method.java:521)
1403-23 23:56:20.544: E/AndroidRuntime(273): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868)
1503-23 23:56:20.544: E/AndroidRuntime(273): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)
1603-23 23:56:20.544: E/AndroidRuntime(273): at dalvik.system.NativeStart.main(Native Method)
1703-23 23:56:20.544: E/AndroidRuntime(273): Caused by: java.lang.ClassNotFoundException: org.apache.cordova.test.actions.CordovaWebViewTestActivity in loader dalvik.system.PathClassLoader[/system/framework/android.test.runner.jar:/data/app/org.apache.cordova.test-2.apk]
1803-23 23:56:20.544: E/AndroidRuntime(273): at dalvik.system.PathClassLoader.findClass(PathClassLoader.java:243)
1903-23 23:56:20.544: E/AndroidRuntime(273): at java.lang.ClassLoader.loadClass(ClassLoader.java:573)
2003-23 23:56:20.544: E/AndroidRuntime(273): at java.lang.ClassLoader.loadClass(ClassLoader.java:532)
2103-23 23:56:20.544: E/AndroidRuntime(273): at android.app.Instrumentation.newActivity(Instrumentation.java:1021)
2203-23 23:56:20.544: E/AndroidRuntime(273): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2577)
2303-23 23:56:20.544: E/AndroidRuntime(273): ... 11 more
  • Forum posts: 164

Mar 25, 2014 4:03:07 AM via Website

Wow, um... that sounds serious. My advice would be to check in with XDA, since it sounds like more of a technical issue than we usually can help out with in the Pit. I wouldn't be able to offer much advice anyway because I can't read adb code.

--I do a good impression of myself--

  • Forum posts: 164

Mar 25, 2014 4:04:01 AM via Website

Sorry, just realized this wasn't in our Q&A forum. Hope the developers might be able to give you more help.

--I do a good impression of myself--

  • Forum posts: 207

Jun 23, 2014 12:58:09 PM via Website

hi,

java.lang.ClassNotFoundException. if you are using jar than add it on build path. or if not than the class is not defined in manifest.