IBM Worklight 5.x - Android应用程序意外停止并终止

时间:2013-07-01 11:01:07

标签: android adt ibm-mobilefirst

我尝试使用Worklight为Android环境开发测试应用程序。当我使用AVD运行应用程序时,它会抛出一条错误消息,如:

  

“抱歉,应用程序测试(进程com.AccorFintech)已停止   不料。请再试一次。“

并且应用程序终止 我正在使用Eclipse 4.2和AVD的Android版本是Android 2.2。

这是我的Logcat:

07-01 16:19:33.510: W/dalvikvm(403): Unable to resolve superclass of Lcom/AccordFintech/AccordFintech; (12)
07-01 16:19:33.510: W/dalvikvm(403): Link of class 'Lcom/AccordFintech/AccordFintech;' failed
07-01 16:19:33.540: D/AndroidRuntime(403): Shutting down VM
07-01 16:19:33.540: W/dalvikvm(403): threadid=1: thread exiting with uncaught exception (group=0x4001d800)
07-01 16:19:33.570: E/AndroidRuntime(403): FATAL EXCEPTION: main
07-01 16:19:33.570: E/AndroidRuntime(403): java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.AccordFintech/com.AccordFintech.AccordFintech}: java.lang.ClassNotFoundException: com.AccordFintech.AccordFintech in loader dalvik.system.PathClassLoader[/data/app/com.AccordFintech-2.apk]
07-01 16:19:33.570: E/AndroidRuntime(403):  at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2585)
07-01 16:19:33.570: E/AndroidRuntime(403):  at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2679)
07-01 16:19:33.570: E/AndroidRuntime(403):  at android.app.ActivityThread.access$2300(ActivityThread.java:125)
07-01 16:19:33.570: E/AndroidRuntime(403):  at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2033)
07-01 16:19:33.570: E/AndroidRuntime(403):  at android.os.Handler.dispatchMessage(Handler.java:99)
07-01 16:19:33.570: E/AndroidRuntime(403):  at android.os.Looper.loop(Looper.java:123)
07-01 16:19:33.570: E/AndroidRuntime(403):  at android.app.ActivityThread.main(ActivityThread.java:4627)
07-01 16:19:33.570: E/AndroidRuntime(403):  at java.lang.reflect.Method.invokeNative(Native Method)
07-01 16:19:33.570: E/AndroidRuntime(403):  at java.lang.reflect.Method.invoke(Method.java:521)
07-01 16:19:33.570: E/AndroidRuntime(403):  at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868)
07-01 16:19:33.570: E/AndroidRuntime(403):  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)
07-01 16:19:33.570: E/AndroidRuntime(403):  at dalvik.system.NativeStart.main(Native Method)
07-01 16:19:33.570: E/AndroidRuntime(403): Caused by: java.lang.ClassNotFoundException: com.AccordFintech.AccordFintech in loader dalvik.system.PathClassLoader[/data/app/com.AccordFintech-2.apk]
07-01 16:19:33.570: E/AndroidRuntime(403):  at dalvik.system.PathClassLoader.findClass(PathClassLoader.java:243)
07-01 16:19:33.570: E/AndroidRuntime(403):  at java.lang.ClassLoader.loadClass(ClassLoader.java:573)
07-01 16:19:33.570: E/AndroidRuntime(403):  at java.lang.ClassLoader.loadClass(ClassLoader.java:532)
07-01 16:19:33.570: E/AndroidRuntime(403):  at android.app.Instrumentation.newActivity(Instrumentation.java:1021)
07-01 16:19:33.570: E/AndroidRuntime(403):  at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2577)
07-01 16:19:33.570: E/AndroidRuntime(403):  ... 11 more

1 个答案:

答案 0 :(得分:0)

您使用的是ADT v22吗?

看看这是否对您有所帮助:IBM Worklight - "Unfortunately, HelloWorkLight has stopped" error message

  1. 右键单击Worklight Studio中的原生Android项目 并选择“属性”。
  2. 选择“Java Build Path”并转到“订购和导出” 标签。
  3. 标记“Android私人图书馆”的复选框
  4. 刷新/清理/重建android项目。
  5. 您需要执行上述每个项目 这在Worklight 6.0中已得到修复。