Search Unity

Crashes after updating to unity 2019.3.4 +2000% on Android

Discussion in 'Editor & General Support' started by mgrigorov_bg, Mar 12, 2020.

  1. mgrigorov_bg

    mgrigorov_bg

    Joined:
    May 14, 2016
    Posts:
    23
    We've updated our unity version from 2018.4.18 to Unity 2019.3.4f1.

    After releasing our Android version on the store we've see increasement in crashing with +2,500%.
    Literary from almost 0 crashes we've manage to ruin the game with updating to that unity.

    Anyone face the crash problems?
    Here is a log from Google Play console:


    java.lang.RuntimeException:
    at android.app.ActivityThread.handleReceiver (ActivityThread.java:3960)
    at android.app.ActivityThread.access$1500 (ActivityThread.java:268)
    at android.app.ActivityThread$H.handleMessage (ActivityThread.java:1993)
    at android.os.Handler.dispatchMessage (Handler.java:107)
    at android.os.Looper.loop (Looper.java:237)
    at android.app.ActivityThread.main (ActivityThread.java:7811)
    at java.lang.reflect.Method.invoke (Native Method)
    at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:493)
    at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:1076)
    Caused by: java.lang.ClassNotFoundException:
    at dalvik.system.BaseDexClassLoader.findClass (BaseDexClassLoader.java:196)
    at java.lang.ClassLoader.loadClass (ClassLoader.java:379)
    at java.lang.ClassLoader.loadClass (ClassLoader.java:312)
    at android.app.AppComponentFactory.instantiateReceiver (AppComponentFactory.java:110)
    at android.app.ActivityThread.handleReceiver (ActivityThread.java:3953)

     
  2. francismoy

    francismoy

    Joined:
    Jul 5, 2017
    Posts:
    46
    At first sight (but just an educated guess), it could be related to some problem with the Android SDK tools. Are you using the recommended ones included in Unity (JDK, SDK, NDK)?
     
  3. mgrigorov_bg

    mgrigorov_bg

    Joined:
    May 14, 2016
    Posts:
    23
    Yes. We i just included them from the hub and didn't setup any external folder.

    I have a suggestion but i might be wrong too.
    I'm using custom gradle template. Is it possible that it could be from it?
     
  4. francismoy

    francismoy

    Joined:
    Jul 5, 2017
    Posts:
    46
    It could be that you need to update the version of some of the libraries in the gradle template. Maybe if you share the contents of this template, I (or more likely someone with more experience with Gradle builds) can spot the problem.
     
  5. mgrigorov_bg

    mgrigorov_bg

    Joined:
    May 14, 2016
    Posts:
    23
    We've removed the gradle template and the crashes still happens. Gradle was needed because of YODO1 ad network mediation.
    However the same crashe appears and we still can't find the problem.
     
  6. burtonmarc

    burtonmarc

    Joined:
    May 29, 2017
    Posts:
    1
    Hi! Did you manage to fins a solution? I got the same error as you but I'm not able to fix it
     
  7. MaskedMouse

    MaskedMouse

    Joined:
    Jul 8, 2014
    Posts:
    1,092
    @burtonmarc Besides this being a thread from last year.

    If this issue is caused by unity, it might've already been solved in a later version.
    Theres not a lot of information to go on. Other than a class not found exception.
    If using Android plugins they might need an update as well.
     
    Last edited: Mar 12, 2021
  8. mgrigorov_bg

    mgrigorov_bg

    Joined:
    May 14, 2016
    Posts:
    23
    The crashes keep going on the android dashboard. However non of our 200k MAU has complained about often crashes.. So I wonder how accurate that is.
     
  9. yuliyF

    yuliyF

    Joined:
    Nov 15, 2012
    Posts:
    197
    I have the same problem in Unity2020.3.5f1