question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ACRA is crashing on Kitkat

See original GitHub issue

Running apk on android 5.1.1 works without issues. Running same APK with ARCA on kitkt with Dalvik cause crash immediately because ARCA init failed.

E/dalvikvm(11066): Could not find class 'org.acra.log.AndroidLogDelegate', referenced from method org.acra.ACRA.<clinit>
W/dalvikvm(11066): VFY: unable to resolve new-instance 9562 (Lorg/acra/log/AndroidLogDelegate;) in Lorg/acra/ACRA;
E/dalvikvm(11066): Could not find class 'org.acra.config.ConfigurationBuilder', referenced from method org.acra.ACRA.getNewDefaultConfig
W/dalvikvm(11066): VFY: unable to resolve new-instance 9552 (Lorg/acra/config/ConfigurationBuilder;) in Lorg/acra/ACRA;
E/dalvikvm(11066): Could not find class 'org.acra.config.ConfigurationBuilder', referenced from method org.acra.ACRA.init
W/dalvikvm(11066): VFY: unable to resolve new-instance 9552 (Lorg/acra/config/ConfigurationBuilder;) in Lorg/acra/ACRA;
E/dalvikvm(11066): Could not find class 'org.acra.legacy.ReportMigrator', referenced from method org.acra.ACRA.init
W/dalvikvm(11066): VFY: unable to resolve new-instance 9560 (Lorg/acra/legacy/ReportMigrator;) in Lorg/acra/ACRA;
E/dalvikvm(11066): Could not find class 'org.acra.util.ApplicationStartupProcessor', referenced from method org.acra.ACRA.init
W/dalvikvm(11066): VFY: unable to resolve new-instance 9583 (Lorg/acra/util/ApplicationStartupProcessor;) in Lorg/acra/ACRA;
E/dalvikvm(11066): Could not find class 'org.acra.ACRA$1', referenced from method org.acra.ACRA.init
W/dalvikvm(11066): VFY: unable to resolve new-instance 9517 (Lorg/acra/ACRA$1;) in Lorg/acra/ACRA;
W/dalvikvm(11066): VFY: unable to resolve exception class 9551 (Lorg/acra/config/ACRAConfigurationException;)
W/dalvikvm(11066): VFY: unable to find exception handler at addr 0xec
W/dalvikvm(11066): VFY:  rejected Lorg/acra/ACRA;.init (Landroid/app/Application;Lorg/acra/config/ACRAConfiguration;Z)V
W/dalvikvm(11066): VFY:  rejecting opcode 0x0d at 0x00ec
W/dalvikvm(11066): VFY:  rejected Lorg/acra/ACRA;.init (Landroid/app/Application;Lorg/acra/config/ACRAConfiguration;Z)V
W/dalvikvm(11066): Verifier rejected class Lorg/acra/ACRA;
W/dalvikvm(11066): threadid=1: thread exiting with uncaught exception (group=0x416d2e18)
E/ActivityManager(  727): App crashed! Process: com.comtechtel.finderkit.locationagent
E/AndroidRuntime(11066): FATAL EXCEPTION: main
E/AndroidRuntime(11066): Process: com.comtechtel.finderkit.locationagent, PID: 11066
E/AndroidRuntime(11066): java.lang.VerifyError: org/acra/ACRA
E/AndroidRuntime(11066):    at com.locationtoolkit.locationagent.ServiceApplication.onCreate(ServiceApplication.java:34)
E/AndroidRuntime(11066):    at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1020)
E/AndroidRuntime(11066):    at android.app.ActivityThread.handleBindApplication(ActivityThread.java:5154)
E/AndroidRuntime(11066):    at android.app.ActivityThread.access$1500(ActivityThread.java:156)
E/AndroidRuntime(11066):    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1418)
E/AndroidRuntime(11066):    at android.os.Handler.dispatchMessage(Handler.java:102)
E/AndroidRuntime(11066):    at android.os.Looper.loop(Looper.java:157)
E/AndroidRuntime(11066):    at android.app.ActivityThread.main(ActivityThread.java:5872)
E/AndroidRuntime(11066):    at java.lang.reflect.Method.invokeNative(Native Method)
E/AndroidRuntime(11066):    at java.lang.reflect.Method.invoke(Method.java:515)
E/AndroidRuntime(11066):    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:858)
E/AndroidRuntime(11066):    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:674)
E/AndroidRuntime(11066):    at dalvik.system.NativeStart.main(Native Method)
W/ActivityManager(  727):   Force finishing activity com.comtechtel.finderkit.locationagent/com.locationtoolkit.locationagent.ServiceActivity

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

0reactions
alemisercommented, Apr 14, 2016

The links were very helpful. The only change I had to make is to extend from MultiDexApplication instead of Application. It is running normally on kitkat now.

Thanks so much! public class ServiceApplication extends MultiDexApplication { @Override public void onCreate() { // The following line triggers the initialization of ACRA super.onCreate(); ACRA.init(this); }

}

Read more comments on GitHub >

github_iconTop Results From Across the Web

ACRA is crashing - android - Stack Overflow
I am using ACRA for crash reporting, but all of a sudden it is causing me some problems. My application won't start, I...
Read more >
Prevent App crashing in Android using ACRA - Inextrix
ACRA is one of the solutions for to deliver a Crash-Free Application. ACRA stands for Application Crash Reporting on Android (ACRA).
Read more >
ACRA (Automated Crash Reporting for Android)
It comes in the form of a library that you add to your app, with code that will get control when an unhandled...
Read more >
Automated Android Crash Reports with ACRA and Cloudant
ACRA stands for “Automated Crash Reporting for Android”. It's a free library that lets you solve the 'manual error reporting' problem with a...
Read more >
How to setup ACRA, an Android Application Crash Tracking ...
Run your application and then change a reason of crash and then run it again. And check your dashboard, you will see that...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found