Only issue in Android 7.0 (java.lang.ClassNotFoundException)

Hi.
Recently, I released the game.
However, an abnormal termination occurs randomly.
Most of it also happens on Android 7.0.
A few days, I can not solve it.
I’ll be waiting for your reply.

java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.playhardlab.android.redbros/com.unity3d.player.UnityPlayerActivity}: java.lang.ClassNotFoundException: Didn't find class "com.unity3d.player.UnityPlayerActivity" on path: DexPathList[[zip file "/data/app/com.playhardlab.android.redbros-1/base.apk"],nativeLibraryDirectories=[/data/app/com.playhardlab.android.redbros-1/lib/arm, /data/app/com.playhardlab.android.redbros-1/base.apk!/lib/armeabi-v7a, /system/lib, /vendor/lib]]
	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2637)
	at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2810)
	at android.app.ActivityThread.-wrap12(ActivityThread.java)
	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1528)
	at android.os.Handler.dispatchMessage(Handler.java:102)
	at android.os.Looper.loop(Looper.java:154)
	at android.app.ActivityThread.main(ActivityThread.java:6312)
	at java.lang.reflect.Method.invoke(Native Method)
	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:872)
	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:762)
Caused by: java.lang.ClassNotFoundException: Didn't find class "com.unity3d.player.UnityPlayerActivity" on path: DexPathList[[zip file "/data/app/com.playhardlab.android.redbros-1/base.apk"],nativeLibraryDirectories=[/data/app/com.playhardlab.android.redbros-1/lib/arm, /data/app/com.playhardlab.android.redbros-1/base.apk!/lib/armeabi-v7a, /system/lib, /vendor/lib]]
	at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:380)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:312)
	at android.app.Instrumentation.newActivity(Instrumentation.java:1079)
	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2627)
	... 9 more

Is this something you’re seeing yourself? or you’re getting reports from users who are trying to play the game ?

1 Like

reports! in google development console.

Did you get this figured out? I am having the same issue

Not sure what the issue is, but worth checking what models it happens on, and also to verify that this class is indeed included in the .apk

any update i’m facing the same here

@wafer23 can you verify that this class is included in your built .apk ?