acra: Application crash on ACRA.init()

Hello, I’m trying to integrate ACRA 4.9.2, and I believe I’ve followed all your instructions.

I am building with ant, and put the acra.jar (from the aar) inside the libs folder, and it does compile ,and ACRA.init() is getting called. But the ‘org.acra.dialog.CrashReportDialog’ seems missing, even though I do see it in the classes.dex .

The log is:

E/AndroidRuntime( 3311): java.lang.NoClassDefFoundError: org.acra.dialog.CrashReportDialog
E/AndroidRuntime( 3311): 	at libcore.reflect.InternalNames.getClass(InternalNames.java:55)
E/AndroidRuntime( 3311): 	at java.lang.Class.getDexCacheType(Class.java:479)
E/AndroidRuntime( 3311): 	at libcore.reflect.AnnotationAccess.decodeValue(AnnotationAccess.java:705)
E/AndroidRuntime( 3311): 	at libcore.reflect.AnnotationAccess.getDefaultValue(AnnotationAccess.java:361)
E/AndroidRuntime( 3311): 	at java.lang.reflect.Method.getDefaultValue(Method.java:327)
E/AndroidRuntime( 3311): 	at libcore.reflect.AnnotationFactory.getElementsDescription(AnnotationFactory.java:75)
E/AndroidRuntime( 3311): 	at libcore.reflect.AnnotationFactory.<init>(AnnotationFactory.java:112)
E/AndroidRuntime( 3311): 	at libcore.reflect.AnnotationFactory.createAnnotation(AnnotationFactory.java:94)
E/AndroidRuntime( 3311): 	at libcore.reflect.AnnotationAccess.toAnnotationInstance(AnnotationAccess.java:666)
E/AndroidRuntime( 3311): 	at libcore.reflect.AnnotationAccess.toAnnotationInstance(AnnotationAccess.java:641)
E/AndroidRuntime( 3311): 	at libcore.reflect.AnnotationAccess.getDeclaredAnnotation(AnnotationAccess.java:170)
E/AndroidRuntime( 3311): 	at libcore.reflect.AnnotationAccess.getAnnotation(AnnotationAccess.java:72)
E/AndroidRuntime( 3311): 	at java.lang.Class.getAnnotation(Class.java:344)
E/AndroidRuntime( 3311): 	at org.acra.ACRA.init(ACRA.java:135)
E/AndroidRuntime( 3311): 	at com.lifevu.webview.Application.attachBaseContext(Application.java:57)
E/AndroidRuntime( 3311): 	at android.app.Application.attach(Application.java:181)
E/AndroidRuntime( 3311): 	at android.app.Instrumentation.newApplication(Instrumentation.java:996)
E/AndroidRuntime( 3311): 	at android.app.Instrumentation.newApplication(Instrumentation.java:980)
E/AndroidRuntime( 3311): 	at android.app.LoadedApk.makeApplication(LoadedApk.java:559)
E/AndroidRuntime( 3311): 	at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4566)
E/AndroidRuntime( 3311): 	at android.app.ActivityThread.access$1600(ActivityThread.java:154)
E/AndroidRuntime( 3311): 	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1382)
E/AndroidRuntime( 3311): 	at android.os.Handler.dispatchMessage(Handler.java:102)
E/AndroidRuntime( 3311): 	at android.os.Looper.loop(Looper.java:135)
E/AndroidRuntime( 3311): 	at android.app.ActivityThread.main(ActivityThread.java:5294)
E/AndroidRuntime( 3311): 	at java.lang.reflect.Method.invoke(Native Method)
E/AndroidRuntime( 3311): 	at java.lang.reflect.Method.invoke(Method.java:372)
E/AndroidRuntime( 3311): 	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:904)
E/AndroidRuntime( 3311): 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:699)
E/AndroidRuntime( 3311): Caused by: java.lang.ClassNotFoundException: Didn't find class "org.acra.dialog.CrashReportDialog" on path: DexPathList[[zip file "/data/app/com.lifevu.webview-1/base.apk"],nativeLibraryDirectories=[/vendor/lib, /system/lib]]
E/AndroidRuntime( 3311): 	at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56)
E/AndroidRuntime( 3311): 	at java.lang.ClassLoader.loadClass(ClassLoader.java:511)
E/AndroidRuntime( 3311): 	at java.lang.ClassLoader.loadClass(ClassLoader.java:469)
E/AndroidRuntime( 3311): 	at libcore.reflect.InternalNames.getClass(InternalNames.java:53)
E/AndroidRuntime( 3311): 	... 28 more
E/AndroidRuntime( 3311): 	Suppressed: java.lang.NoClassDefFoundError: org.acra.dialog.CrashReportDialog
E/AndroidRuntime( 3311): 		at dalvik.system.DexFile.defineClassNative(Native Method)
E/AndroidRuntime( 3311): 		at dalvik.system.DexFile.defineClass(DexFile.java:226)
E/AndroidRuntime( 3311): 		at dalvik.system.DexFile.loadClassBinaryName(DexFile.java:219)
E/AndroidRuntime( 3311): 		at dalvik.system.DexPathList.findClass(DexPathList.java:321)
E/AndroidRuntime( 3311): 		at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:54)
E/AndroidRuntime( 3311): 		... 31 more
E/AndroidRuntime( 3311): 	Suppressed: java.lang.ClassNotFoundException: org.acra.dialog.CrashReportDialog
E/AndroidRuntime( 3311): 		at java.lang.Class.classForName(Native Method)
E/AndroidRuntime( 3311): 		at java.lang.BootClassLoader.findClass(ClassLoader.java:781)
E/AndroidRuntime( 3311): 		at java.lang.BootClassLoader.loadClass(ClassLoader.java:841)
E/AndroidRuntime( 3311): 		at java.lang.ClassLoader.loadClass(ClassLoader.java:504)
E/AndroidRuntime( 3311): 		... 30 more

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Comments: 17 (8 by maintainers)

Most upvoted comments

Thank you! The support-v4 was the real problem. I don’t know how I missed that.