应用程序在启动时意外停止

时间:2010-03-20 23:48:22

标签: android overlay google-maps itemizedoverlay

我在设备和模拟器上运行它。该应用程序意外停止。

我不知道目前的错误。

它使用我使用Google Api 7编译的Google API地图。

我遵循了本教程http://developer.android.com/guide/tutorials/views/hello-mapview.html (做了一些改动)

我确实使用了正确的API密钥,最终的apk用

签名

This is the source(如果你编译它不应该工作,因为它是无符号的)

This is the compiled signed apk

日志

03-21 00:30:38.912: INFO/ActivityManager(54): Starting activity: Intent { act=android.intent.action.MAIN flg=0x10000000 cmp=com.chris.stryker.worldly/.com.poppoob.WorldlyMap }
03-21 00:30:39.173: INFO/ActivityManager(54): Start proc com.chris.stryker.worldly for activity com.chris.stryker.worldly/.com.poppoob.WorldlyMap: pid=287 uid=10031 gids={3003, 1015}
03-21 00:30:39.532: DEBUG/ddm-heap(287): Got feature list request
03-21 00:30:40.185: WARN/dalvikvm(287): Unable to resolve superclass of Lcom/chris/stryker/worldly/com/poppoob/WorldlyMap; (17)
03-21 00:30:40.193: WARN/dalvikvm(287): Link of class 'Lcom/chris/stryker/worldly/com/poppoob/WorldlyMap;' failed
03-21 00:30:40.205: DEBUG/AndroidRuntime(287): Shutting down VM
03-21 00:30:40.223: WARN/dalvikvm(287): threadid=3: thread exiting with uncaught exception (group=0x4001b188)
03-21 00:30:40.223: ERROR/AndroidRuntime(287): Uncaught handler: thread main exiting due to uncaught exception
03-21 00:30:40.252: ERROR/AndroidRuntime(287): java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.chris.stryker.worldly/com.chris.stryker.worldly.com.poppoob.WorldlyMap}: java.lang.ClassNotFoundException: com.chris.stryker.worldly.com.poppoob.WorldlyMap in loader dalvik.system.PathClassLoader@45a13938
03-21 00:30:40.252: ERROR/AndroidRuntime(287):     at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2417)
03-21 00:30:40.252: ERROR/AndroidRuntime(287):     at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2512)
03-21 00:30:40.252: ERROR/AndroidRuntime(287):     at android.app.ActivityThread.access$2200(ActivityThread.java:119)
03-21 00:30:40.252: ERROR/AndroidRuntime(287):     at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1863)
03-21 00:30:40.252: ERROR/AndroidRuntime(287):     at android.os.Handler.dispatchMessage(Handler.java:99)
03-21 00:30:40.252: ERROR/AndroidRuntime(287):     at android.os.Looper.loop(Looper.java:123)
03-21 00:30:40.252: ERROR/AndroidRuntime(287):     at android.app.ActivityThread.main(ActivityThread.java:4363)
03-21 00:30:40.252: ERROR/AndroidRuntime(287):     at java.lang.reflect.Method.invokeNative(Native Method)
03-21 00:30:40.252: ERROR/AndroidRuntime(287):     at java.lang.reflect.Method.invoke(Method.java:521)
03-21 00:30:40.252: ERROR/AndroidRuntime(287):     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:860)
03-21 00:30:40.252: ERROR/AndroidRuntime(287):     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618)
03-21 00:30:40.252: ERROR/AndroidRuntime(287):     at dalvik.system.NativeStart.main(Native Method)
03-21 00:30:40.252: ERROR/AndroidRuntime(287): Caused by: java.lang.ClassNotFoundException: com.chris.stryker.worldly.com.poppoob.WorldlyMap in loader dalvik.system.PathClassLoader@45a13938
03-21 00:30:40.252: ERROR/AndroidRuntime(287):     at dalvik.system.PathClassLoader.findClass(PathClassLoader.java:243)
03-21 00:30:40.252: ERROR/AndroidRuntime(287):     at java.lang.ClassLoader.loadClass(ClassLoader.java:573)
03-21 00:30:40.252: ERROR/AndroidRuntime(287):     at java.lang.ClassLoader.loadClass(ClassLoader.java:532)
03-21 00:30:40.252: ERROR/AndroidRuntime(287):     at android.app.Instrumentation.newActivity(Instrumentation.java:1021)
03-21 00:30:40.252: ERROR/AndroidRuntime(287):     at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2409)
03-21 00:30:40.252: ERROR/AndroidRuntime(287):     ... 11 more
03-21 00:30:40.300: INFO/Process(54): Sending signal. PID: 287 SIG: 3
03-21 00:30:40.312: INFO/dalvikvm(287): threadid=7: reacting to signal 3
03-21 00:30:40.396: INFO/dalvikvm(287): Wrote stack trace to '/data/anr/traces.txt'
03-21 00:30:49.002: WARN/ActivityManager(54): Launch timeout has expired, giving up wake lock!
03-21 00:30:49.685: WARN/ActivityManager(54): Activity idle timeout for HistoryRecord{458ab6d0 com.chris.stryker.worldly/.com.poppoob.WorldlyMap}

2 个答案:

答案 0 :(得分:1)

通过添加/移动来修复您的清单

<uses-library android:name="com.google.android.maps" />

进入应用程序

答案 1 :(得分:0)

关键是:

  

03-21 00:30:40.185:   WARN / dalvikvm(287):无法解决   超类   LCOM /克里斯/电动切削/世俗/ COM / poppoob / WorldlyMap;

这可能意味着您已将APK加载到缺少Google API的模拟器AVD中。