尝试使用ACRA在谷歌文档中收集应用程序崩溃报告,但在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)
答案 0 :(得分:1)
通过在项目中“导出”“Android私有库”来解决此问题。仍然怀疑这是ADT 22的一个问题。
转到项目属性,java构建路径,订单和导出,然后选中“Android私有库”。
答案 1 :(得分:0)
您的应用中似乎没有ACRA库(在运行时)。将其添加到您的apk中。