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.

Release build gives me: Unfortunately, “App” has stopped

See original GitHub issue

Issue details

After August 1 2019, I developed “Happy Can 15.0” with 64-bit ABI support: https://play.google.com/store/apps/details?id=com.happycenter.happycan.android To do this, I updated LibGDX, Gradle, Android Studio etc. And for the first time, the release build does not run on some devices such as Samsung SM-T113 Tablet and some of Android 4.x devices.

It throws that error message: “Unfortunately Happy Can has stopped”

Report Stacktrace Screen: https://imgbbb.com/images/2019/10/03/sm-t310.png

My game is running in debug mode on all devices but it is not running in release mode on some devices: https://imgbbb.com/images/2019/10/03/1d59bb91a6472369d.png https://imgbbb.com/images/2019/10/03/2b64b0db1c38003ca.png

Version of LibGDX and/or relevant dependencies

buildToolsVersion “28.0.3” compileSdkVersion 28

gdxVersion = ‘1.9.10’ roboVMVersion = ‘1.8.0’ box2DLightsVersion = ‘1.4’ ashleyVersion = ‘1.6.0’ aiVersion = ‘1.5.0’

classpath ‘com.android.tools.build:gradle:3.5.0’ classpath ‘org.robovm:robovm-gradle-plugin:1.8.0’ classpath ‘com.google.gms:google-services:3.2.0’

Stacktrace


Today, 6:42 PM on app version 38
Samsung Galaxy Tab3 Lite 7.0 (goyavewifi), Android 4.4
Report 1

java.lang.RuntimeException: 
  at android.app.ActivityThread.performLaunchActivity (ActivityThread.java:2429)
  at android.app.ActivityThread.handleLaunchActivity (ActivityThread.java:2493)
  at android.app.ActivityThread.access$800 (ActivityThread.java:166)
  at android.app.ActivityThread$H.handleMessage (ActivityThread.java:1283)
  at android.os.Handler.dispatchMessage (Handler.java:102)
  at android.os.Looper.loop (Looper.java:136)
  at android.app.ActivityThread.main (ActivityThread.java:5584)
  at java.lang.reflect.Method.invokeNative (Native Method)
  at java.lang.reflect.Method.invoke (Method.java:515)
  at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run (ZygoteInit.java:1268)
  at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:1084)
  at dalvik.system.NativeStart.main (Native Method)
Caused by: java.lang.RuntimeException: 
  at b.b.a.b.a.b.a (5)
  at b.b.a.b.a.b.a
  at com.happycenter.happycan.android.AndroidLauncher.onCreate
  at android.app.Activity.performCreate (Activity.java:5447)
  at android.app.Instrumentation.callActivityOnCreate (Instrumentation.java:1094)
  at android.app.ActivityThread.performLaunchActivity (ActivityThread.java:2393)
Caused by: java.lang.ClassNotFoundException: 
  at java.lang.Class.classForName (Native Method)
  at java.lang.Class.forName (Class.java:251)
  at java.lang.Class.forName (Class.java:216)
  at b.b.a.b.a.b.a (1)

https://imgbbb.com/images/2019/10/03/sm-t310.png

Please select the affected platforms

  • Android

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
ahgulumcommented, Oct 3, 2019

Thank you very much. android.enableR8=false fixed the problem.

1reaction
SimonITcommented, Oct 3, 2019

The configs are the same, but since android gradle plugin 3.4.0 it uses the new R8 obfuscator. See here. By disabling R8, it uses proguard

Read more comments on GitHub >

github_iconTop Results From Across the Web

8 Quick Ways to Fix “Unfortunately App Has Stopped” On ...
Do your apps keep stopping, crashing, or just won't start at all? Here are 8 tips to combat “Unfortunately app has stopped” on...
Read more >
How to fix 'Unfortunately app has stopped' error on Android
To check this, simply remove the memory card and launch the app that has stopped working. If it works, then you have your...
Read more >
7 Ways to Fix 'Unfortunately, App Has Stopped' Error on Android
Open the Settings on your phone · Go to App & Notifications and tap See all apps. · Here select the app that...
Read more >
Android Studio Release build gives me: Unfortunately, “App ...
I'm working on Android Studio 1.1.0. The build variant debug works perfectly but when I tried to run the release build variant the...
Read more >
5 Fixes to Solve Unfortunately Settings Has Stopped Error
Scroll down to the bottom of the menu and tap on the Play Store or Build version option and the app will inform...
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