尝试使用ACRA在google doc中收集应用程序崩溃报告,但在AppCrashReports.java文件中出现问题,这里我使用崩溃报告中的won变量内容。但是在没有启动应用程序的情况下应用程序崩溃了,我在这里放置了logcat。
05-17 03:56:06.478: I/dalvikvm(738): Could not find method org.acra.ErrorReporter.getInstance, referenced from method com.lisnx.util.AppCrashReports.onCreate
05-17 03:56:06.478: W/dalvikvm(738): VFY: unable to resolve static method 12707: Lorg/acra/ErrorReporter;.getInstance ()Lorg/acra/ErrorReporter;
05-17 03:56:06.478: D/dalvikvm(738): VFY: replacing opcode 0x71 at 0x0000
05-17 03:56:06.488: I/dalvikvm(738): Could not find method org.acra.ACRA.init, referenced from method com.lisnx.util.AppCrashReports.onCreate
05-17 03:56:06.488: W/dalvikvm(738): VFY: unable to resolve static method 12706: Lorg/acra/ACRA;.init (Landroid/app/Application;)V
05-17 03:56:06.488: D/dalvikvm(738): VFY: replacing opcode 0x71 at 0x0033
05-17 03:56:06.488: D/AndroidRuntime(738): Shutting down VM
05-17 03:56:06.488: W/dalvikvm(738): threadid=1: thread exiting with uncaught exception (group=0x40014760)
05-17 03:56:06.497: E/AndroidRuntime(738): FATAL EXCEPTION: main
05-17 03:56:06.497: E/AndroidRuntime(738): java.lang.NoClassDefFoundError: org.acra.ErrorReporter
05-17 03:56:06.497: E/AndroidRuntime(738): at com.lisnx.util.AppCrashReports.onCreate(AppCrashReports.java:21)
05-17 03:56:06.497: E/AndroidRuntime(738): at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:968)
05-17 03:56:06.497: E/AndroidRuntime(738): at android.app.ActivityThread.handleBindApplication(ActivityThread.java:3696)
05-17 03:56:06.497: E/AndroidRuntime(738): at android.app.ActivityThread.access$1200(ActivityThread.java:122)
05-17 03:56:06.497: E/AndroidRuntime(738): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1062)
05-17 03:56:06.497: E/AndroidRuntime(738): at android.os.Handler.dispatchMessage(Handler.java:99)
05-17 03:56:06.497: E/AndroidRuntime(738): at android.os.Looper.loop(Looper.java:132)
05-17 03:56:06.497: E/AndroidRuntime(738): at android.app.ActivityThread.main(ActivityThread.java:4123)
05-17 03:56:06.497: E/AndroidRuntime(738): at java.lang.reflect.Method.invokeNative(Native Method)
05-17 03:56:06.497: E/AndroidRuntime(738): at java.lang.reflect.Method.invoke(Method.java:491)
05-17 03:56:06.497: E/AndroidRuntime(738): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:841)
05-17 03:56:06.497: E/AndroidRuntime(738): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:599)
05-17 03:56:06.497: E/AndroidRuntime(738): at dalvik.system.NativeStart.main(Native Method)
通过"导出"项目中的"Android private Libraries"修复了此问题。我仍然怀疑这是ADT 22的问题。
进入你的项目属性,java构建路径,命令和导出,并检查"Android private Libraries"
您的应用程序(在运行时)中似乎没有ACRA库。