尝试使用 ACRA 在 google doc 中收集应用程序崩溃报告,但在 AppCrashReports.java 文件中出现问题,这里我在崩溃报告中使用了获得的变量内容。但是应用程序在没有启动应用程序的情况下崩溃,我正在放置 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)