Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

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

Discussion in 'Android' started by taekjun-lee, May 10, 2017.

  1. taekjun-lee

    taekjun-lee

    Joined:
    May 9, 2016
    Posts:
    2
    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.

    Code (csharp):
    1.  
    2. 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]]
    3.     at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2637)
    4.     at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2810)
    5.     at android.app.ActivityThread.-wrap12(ActivityThread.java)
    6.     at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1528)
    7.     at android.os.Handler.dispatchMessage(Handler.java:102)
    8.     at android.os.Looper.loop(Looper.java:154)
    9.     at android.app.ActivityThread.main(ActivityThread.java:6312)
    10.     at java.lang.reflect.Method.invoke(Native Method)
    11.     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:872)
    12.     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:762)
    13. 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]]
    14.     at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56)
    15.     at java.lang.ClassLoader.loadClass(ClassLoader.java:380)
    16.     at java.lang.ClassLoader.loadClass(ClassLoader.java:312)
    17.     at android.app.Instrumentation.newActivity(Instrumentation.java:1079)
    18.     at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2627)
    19.     ... 9 more
    20.  
     
  2. liortal

    liortal

    Joined:
    Oct 17, 2012
    Posts:
    3,562
    Is this something you're seeing yourself? or you're getting reports from users who are trying to play the game ?
     
    taekjun-lee likes this.
  3. taekjun-lee

    taekjun-lee

    Joined:
    May 9, 2016
    Posts:
    2
    reports! in google development console.
     
  4. ev3d

    ev3d

    Joined:
    Apr 19, 2013
    Posts:
    327
    Did you get this figured out? I am having the same issue
     
  5. liortal

    liortal

    Joined:
    Oct 17, 2012
    Posts:
    3,562
    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
     
  6. wafer23

    wafer23

    Joined:
    Nov 29, 2016
    Posts:
    6
    any update i'm facing the same here
     
  7. liortal

    liortal

    Joined:
    Oct 17, 2012
    Posts:
    3,562
    @wafer23 can you verify that this class is included in your built .apk ?