Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Crashes on Android after migrating to Unity 2018.3 when use AndroidJavaProxy class

Discussion in 'Android' started by IceCatGames, Feb 11, 2019.

  1. kalibcrone

    kalibcrone

    Joined:
    Sep 4, 2015
    Posts:
    10
    Thank you for the lead!!! I had a VERY similar issue with my OnePlus 7 Pro and this helped direct me to the problem.

    I did not have OpenGL 3 enabled, however for me is was actually Vulkan Graphics API causing the issue.

    I noticed that it was Vulkan causing some issue after seeing it appear in crash errors in the Unity Cloud Diagnostics dashboard.

    Like you said, I removed everything except for OpenGL 2 and FINALLY my OnePlus 7 Pro no longer insta-crashes on start up.
     
  2. andrewskuratov

    andrewskuratov

    Joined:
    Dec 12, 2016
    Posts:
    7
    Hello everyone!
    I faced the same issue in Unity 2021.3.17f1 after implementing Google Mobile Ads SDK. App crashes in several seconds on loading process completed.

    So, I found two ways to fix it:
    • Disable Strip Engine Code setting in Player Settings.
      Note: Changing value in Manager Stripping Level parameter doesn't affect anything.
    • Add Android JNI package to your project. Just open Package Manager, find the package in Built-in list and install it.