Release build gives me: Unfortunately, “App” has stopped
See original GitHub issueIssue 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:
- Created 4 years ago
- Comments:6 (3 by maintainers)
Top GitHub Comments
Thank you very much. android.enableR8=false fixed the problem.
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