Search Unity

  1. Good news ✨ We have more Unite Now videos available for you to watch on-demand! Come check them out and ask our experts any questions!
    Dismiss Notice

Native method not found: com.unity3d.player.UnityPlayer.nativeRestartActivityIndicator:()V

Discussion in 'Android' started by morozov1333, Aug 21, 2018.

  1. MarcoIt

    MarcoIt

    Joined:
    Nov 3, 2018
    Posts:
    1
  2. JSC-Sparkling

    JSC-Sparkling

    Joined:
    Sep 27, 2019
    Posts:
    2
    After checking the workaround script, which doesn't work for 2017.x, I've found an additional issue where not all `gradle.properties` are being patched accordingly. When building with gradle, any sub-folder in the `Assets/Plugins/Android` folder creates its own gradle project folder with its own `gradle.properties` file.

    In order to solve this issue, I've come up with my own workaround, which also works for 2017.x:
    Generate the `mainTemplate.gradle` (can be done through the PlayerSettings) and edit it by adding the following piece of code:
    Code (csharp):
    1. ([rootProject] + (rootProject.subprojects as List)).each {
    2.     ext {
    3.         it.setProperty("android.bundle.enableUncompressedNativeLibs", false)
    4.     }
    5. }
    above the following line:
    Code (csharp):
    1. apply plugin: 'com.android.application'
     
    Last edited: Sep 27, 2019
  3. Tomas1856

    Tomas1856

    Unity Technologies

    Joined:
    Sep 21, 2012
    Posts:
    2,289
  4. hoangst_wolffun

    hoangst_wolffun

    Joined:
    Sep 29, 2018
    Posts:
    13
    Hi, I got it on known Issues in 2019.2.7f2: "Mobile: [Android] Crash in java.lang.UnsatisfiedLinkError when application location is changed to SD card on Android device (1181365)".
    So, this error has been fixed on 2019.2.7f2, right?
     
  5. Zeeppo-Games

    Zeeppo-Games

    Joined:
    May 13, 2015
    Posts:
    38
    No, it doesnt. They know the issue exists, with no solution yet. The fixes are in the “fixes” section. There is a fix on il2cpp category that I think is the solution of one of the 5 issues. Can anynody confirm that?
     
  6. HaoPham

    HaoPham

    Joined:
    Sep 3, 2019
    Posts:
    1
    Hi,
    I don't know my problem is exactly the same main problem here or not, but it relates to. The different here is I use split APK files, not AAB files, but still got the same crash log:

    Code (CSharp):
    1. Today, 11:29 AM on app version 336
    2. TCT (Alcatel) A466BG (PIXI4_4TF), Android 6.0
    3.  
    4. java.lang.Error: FATAL EXCEPTION [main]
    5. Unity version     : 2019.1.10f1
    6. Device model      : TCL A466BG
    7. Device fingerprint: TCL/A466BG/PIXI4_4TF:6.0/MRA58K/v6F29-0:user/release-keys
    8. Caused by
    9.   at com.unity3d.player.UnityPlayer.nativeRestartActivityIndicator (Native Method)
    10.   at com.unity3d.player.UnityPlayer.resume (Unknown Source)
    11.   ...
    12.  
    I don't use Application.Quit.
    Build Armv7, Arm64
    Unity 2019.1.10f1
    Previous version: 2017.4 LTS, I didn't have this problem.

    Thanks!
     
  7. PratyakshAgarwal

    PratyakshAgarwal

    Joined:
    Oct 28, 2018
    Posts:
    5
    Is there a stable/permanent fix yet?
    I too have had the same error.

    It seems to be fixed for now, but is the fix final, i.e. stable?
     
    Last edited: Oct 9, 2019
  8. Tomas1856

    Tomas1856

    Unity Technologies

    Joined:
    Sep 21, 2012
    Posts:
    2,289
  9. spacepluk

    spacepluk

    Joined:
    Aug 26, 2015
    Posts:
    187
    Thanks for the workaround!
     
  10. Lejv

    Lejv

    Joined:
    Nov 19, 2014
    Posts:
    5
    Hi, the workaround didnt work for me. Before we were using Unity 2018.3.13f1 and now with Unity 2019.2.1f1 and we have o lot of "java.lang.UnsatisfiedLinkError" and "java.lang.Error: FATAL EXCEPTION [main]" crashes.
    I added the ProjectGeneratorCallback.cs script but it seems even worse.
    Maybe i forgot something? Or the problem comes from somewhere else?
     
  11. Tomas1856

    Tomas1856

    Unity Technologies

    Joined:
    Sep 21, 2012
    Posts:
    2,289
    Can you post full error message, the exception name is not enough. Please post with title and stacktrace
     
  12. Lejv

    Lejv

    Joined:
    Nov 19, 2014
    Posts:
    5
    Code (CSharp):
    1. java.lang.Error: FATAL EXCEPTION [main]
    2. Unity version     : 2019.2.1f1
    3. Caused by
    4.   at com.unity3d.player.UnityPlayer.nativeRestartActivityIndicator (Native Method)
    5.   at com.unity3d.player.UnityPlayer.resume (Unknown Source)
    6.   at com.unity3d.player.UnityPlayerActivity.onResume (Unknown Source)
    7.   at android.app.Instrumentation.callActivityOnResume (Instrumentation.java:1270)
    8.   at android.app.Activity.performResume (Activity.java:6970)
    9.   at android.app.ActivityThread.performResumeActivity (ActivityThread.java:3479)
    10.   at android.app.ActivityThread.handleResumeActivity (ActivityThread.java:3542)
    11.   at android.app.ActivityThread$H.handleMessage (ActivityThread.java:1575)
    12.   at android.os.Handler.dispatchMessage (Handler.java:102)
    13.   at android.os.Looper.loop (Looper.java:163)
    14.   at android.app.ActivityThread.main (ActivityThread.java:6238)
    15.   at java.lang.reflect.Method.invoke (Native Method)
    16.   at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run (ZygoteInit.java:933)
    17.   at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:823)
    Code (CSharp):
    1. java.lang.UnsatisfiedLinkError:
    2.   at com.unity3d.player.UnityPlayer.nativeRestartActivityIndicator (Native Method)
    3.   at com.unity3d.player.UnityPlayer.resume (Unknown Source:23)
    4.   at com.unity3d.player.UnityPlayerActivity.onResume (Unknown Source:5)
    5.   at android.app.Instrumentation.callActivityOnResume (Instrumentation.java:1456)
    6.   at android.app.Activity.performResume (Activity.java:7614)
    7.   at android.app.ActivityThread.performResumeActivity (ActivityThread.java:4412)
    8.   at android.app.ActivityThread.handleResumeActivity (ActivityThread.java:4470)
    9.   at android.app.servertransaction.ResumeActivityItem.execute (ResumeActivityItem.java:51)
    10.   at android.app.servertransaction.TransactionExecutor.executeLifecycleState (TransactionExecutor.java:145)
    11.   at android.app.servertransaction.TransactionExecutor.execute (TransactionExecutor.java:70)
    12.   at android.app.ActivityThread$H.handleMessage (ActivityThread.java:2199)
    13.   at android.os.Handler.dispatchMessage (Handler.java:112)
    14.   at android.os.Looper.loop (Looper.java:216)
    15.   at android.app.ActivityThread.main (ActivityThread.java:7625)
    16.   at java.lang.reflect.Method.invoke (Native Method)
    17.   at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:524)
    18.   at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:987)
    Thank you for very quick answer!
     
  13. Tomas1856

    Tomas1856

    Unity Technologies

    Joined:
    Sep 21, 2012
    Posts:
    2,289
    You're using older 2019.2, update to latest 2019.2. At the very least, 2019.2.5f1 will contain improved error messages for cases where app fails to load native library, this will give a clearer answer, what's failing
     
  14. Edward-Qu

    Edward-Qu

    Joined:
    Mar 29, 2016
    Posts:
    5
    Does 2018.4.X(LTS) has improved error messages?
     
    HaoPham likes this.
  15. MardukCorp

    MardukCorp

    Joined:
    May 21, 2016
    Posts:
    82
  16. Tomas1856

    Tomas1856

    Unity Technologies

    Joined:
    Sep 21, 2012
    Posts:
    2,289
    2018.4.10f1 has it
     
  17. Tomas1856

    Tomas1856

    Unity Technologies

    Joined:
    Sep 21, 2012
    Posts:
    2,289
    I see that the backport wasn't successful, so they're investigating it what went wrong. Sorry no ETA yet.
     
  18. Tomas1856

    Tomas1856

    Unity Technologies

    Joined:
    Sep 21, 2012
    Posts:
    2,289
    It will land in 2019.2.12f1
     
  19. JokeMaker

    JokeMaker

    Joined:
    Sep 9, 2019
    Posts:
    3
    same issue here!
    using Unity 2018.4.3f1

    upload_2019-10-29_16-30-28.png
    upload_2019-10-29_16-30-45.png

    Any solution for the issue now?
     
  20. Tomas1856

    Tomas1856

    Unity Technologies

    Joined:
    Sep 21, 2012
    Posts:
    2,289
  21. iFarooqK

    iFarooqK

    Joined:
    Oct 12, 2019
    Posts:
    1
    Should we expect the fix for this issue in upcoming Unity 2019.2.12f1 as well? Right now my project is in unity 2019.1.3 downgrading to 2018.4.x will cause issues. Should I wait for release of Unity 2019.2.12f1?
     
  22. Tomas1856

    Tomas1856

    Unity Technologies

    Joined:
    Sep 21, 2012
    Posts:
    2,289
    if you're referring to SD card issue, then yes - the fix will be in 2019.2.12f1
     
  23. MardukCorp

    MardukCorp

    Joined:
    May 21, 2016
    Posts:
    82
    @Tomas1856 Thank you for the heads-up! Any ETA for that, as 2019.2.11f1 is still in between that?
     
  24. Rutger

    Rutger

    Joined:
    Sep 17, 2013
    Posts:
    34
    @Tomas1856 Maybe you can suggest some changes to the appropriate team(s).

    It is great that it is fixed in 2018.4.12f1, but several "issues" are making it difficult to proceed.
    1. In the issue tracker when an issue is fixed (link) it only shows in 2018.4 and not the minor version number which is what we would need to know to be able to determine if we need to create a new build to fix it. (minor issue, because we can read the release notes)
    2. But this is being made more difficult by missing information.
      1. No release date in the release notes
      2. No mention in the release notes when this version is available on Cloud Build, because..:
    3. Selecting "Always Use Latest 2018.4" in the config of Cloud Build, doesn't necessarily give you the latest released version.Because building on 4 and 6 November resulted in builds using 2018.4.11f1. Just started another build to see if it was updated: Still version 2018.4.11f1 on November 10th.

    I can understand the latest build not being available immediately after release, but all these missing information points are making it quite difficult to create a fixed build (via Cloud Build).

    If anything, I hope that 1. a new release will end up on Cloud faster and/or 2. that we can at least see in the UI somewhere which version is the latest version available on Cloud.

    Is there a somewhat fixed schedule on when a version ends up on Cloud?

    Thank you.
     
  25. Tomas1856

    Tomas1856

    Unity Technologies

    Joined:
    Sep 21, 2012
    Posts:
    2,289
    Sorry for the inconvenience, I forwarded your message to the right people, hopefully they will give you a reply soon
     
    Rutger likes this.
  26. The_Oathman

    The_Oathman

    Joined:
    Jul 9, 2016
    Posts:
    5


    So my app is being tested on two devices. Samsung S7 and Note 8. on the Note 8 I have never run into a single crash. on S7 I manage to produce this crash twice. It happened to me randomly. First time at minute 3 from the moment I started my app, Second time was at about minute 5.
    I haven't applied the fix above yet and . I will do that and tell you the result.
     
  27. The_Oathman

    The_Oathman

    Joined:
    Jul 9, 2016
    Posts:
    5
    Ok i'm stupid. I will share my stupidity here so you can learn from my mistake and probably make you laugh.

    Turns out my app is perfectly fine. Only issue was i have unity 2018.3 which has the application.Quite() crash. that was exactly the source of the above crashes that keep popping up in google play console.
    The funny thing is, when i was testing my app on S7 so i can replicate that (Rare Unknown) crash, I had a button at the bottom right corner just above the (back) button on the S7, so every time i try clicking that button, I sometimes miss-click and hit the Back button of the S7 whick trigger the application.Quite() which then trigger the crash ¯\_(ツ)_¯

    and that's why ladies and gentlemen my app crashes on S7 but not on Note 8 which has the back button hidden.
     
    JuliusM likes this.
  28. phuongnh

    phuongnh

    Joined:
    Sep 23, 2019
    Posts:
    21
    Hello,
    I still got this crash on Unity 2018.4.12f1.
    Here is the log:
    Anything new on this?
     
  29. WasimBashir

    WasimBashir

    Joined:
    Nov 24, 2017
    Posts:
    9
    Hello,
    I still got this crash on Unity 2018.4.12f1.
    Here is the log:

    Fatal Exception: java.lang.Error: FATAL EXCEPTION [main]

    Caused by java.lang.UnsatisfiedLinkError: No implementation found for void com.unity3d.player.UnityPlayer.nativeRestartActivityIndicator() (tried Java_com_unity3d_player_UnityPlayer_nativeRestartActivityIndicator and Java_com_unity3d_player_UnityPlayer_nativeRestartActivityIndicator__)
    at com.unity3d.player.UnityPlayer.nativeRestartActivityIndicator()
    at com.unity3d.player.UnityPlayer.resume()
    at com.unity3d.player.UnityPlayerActivity.onResume()
    at android.app.Instrumentation.callActivityOnResume + 1270(Instrumentation.java:1270)
    at android.app.Activity.performResume + 6861(Activity.java:6861)
    at android.app.ActivityThread.performResumeActivity + 3512(ActivityThread.java:3512)
    at android.app.ActivityThread.handleResumeActivity + 3575(ActivityThread.java:3575)
    at android.app.ActivityThread.handleLaunchActivity + 2817(ActivityThread.java:2817)
    at android.app.ActivityThread.-wrap12(ActivityThread.java)
    at android.app.ActivityThread$H.handleMessage + 1528(ActivityThread.java:1528)
    at android.os.Handler.dispatchMessage + 102(Handler.java:102)
    at android.os.Looper.loop + 154(Looper.java:154)
    at android.app.ActivityThread.main + 6316(ActivityThread.java:6316)
    at java.lang.reflect.Method.invoke(Method.java)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run + 872(ZygoteInit.java:872)
    at com.android.internal.os.ZygoteInit.main + 762(ZygoteInit.java:762)
     
  30. zyonneo

    zyonneo

    Joined:
    Apr 13, 2018
    Posts:
    360
    01-28 13:25:06.305 27032 27061 E Unity : AndroidJavaException: java.lang.ClassNotFoundException: Didn't find class "com/unity/player/UnityPlayer" on path: DexPathList[[zip file "/data/app/com.testing.androidplugin-Aq1j3vpTxsomWMvd4kK7NQ==/base.apk"],nativeLibraryDirectories=[/data/app/com.testing.androidplugin-Aq1j3vpTxsomWMvd4kK7NQ==/lib/arm, /data/app/com.testing.androidplugin-Aq1j3vpTxsomWMvd4kK7NQ==/base.apk!/lib/armeabi-v7a, /system/lib, /system/vendor/lib]]

    01-28 13:25:06.305 27032 27061 E Unity : java.lang.ClassNotFoundException: Didn't find class "com/unity/player/UnityPlayer" on path: DexPathList[[zip file "/data/app/com.testing.androidplugin-Aq1j3vpTxsomWMvd4kK7NQ==/base.apk"],nativeLibraryDirectories=[/data/app/com.testing.androidplugin-Aq1j3vpTxsomWMvd4kK7NQ==/lib/arm, /data/app/com.testing.androidplugin-Aq1j3vpTxsomWMvd4kK7NQ==/base.apk!/lib/armeabi-v7a, /system/lib, /system/vendor/lib]]

    01-28 13:25:06.305 27032 27061 E Unity : at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:93)

    01-28 13:25:06.305 27032 27061 E Unity : at com.unity3d.player.UnityPlayer.nativeRender(Native Method)

    01-28 13:25:06.305 27032 27061 E Unity : at com.unity3d.player.UnityPlayer.c(Unknown Source:0


    Code (CSharp):
    1. <?xml version="1.0" encoding="utf-8"?>
    2. <manifest
    3.     xmlns:android="http://schemas.android.com/apk/res/android"
    4.     package="com.unity3d.player"
    5.     xmlns:tools="http://schemas.android.com/tools"
    6.     android:installLocation="preferExternal">
    7.     <supports-screens
    8.         android:smallScreens="true"
    9.         android:normalScreens="true"
    10.         android:largeScreens="true"
    11.         android:xlargeScreens="true"
    12.         android:anyDensity="true"/>
    13.  
    14.     <application
    15.         android:theme="@style/UnityThemeSelector"
    16.         android:icon="@mipmap/app_icon"
    17.         android:label="@string/app_name">
    18.         <activity android:name="com.unity3d.player.UnityPlayerActivity"
    19.                   android:label="@string/app_name">
    20.             <intent-filter>
    21.                 <action android:name="android.intent.action.MAIN" />
    22.                 <category android:name="android.intent.category.LAUNCHER" />
    23.             </intent-filter>
    24.             <meta-data android:name="unityplayer.UnityActivity" android:value="true" />
    25.         </activity>
    26.       <activity android:name="com.techripples.gallery.Gallery"></activity>
    27.        
    28.     </application>
    29. </manifest>
    30.  
    Android Code below

    UnityBinder.java
    Code (CSharp):
    1.  
    2. package com.techripples.unityplugin;
    3.  
    4. import android.app.Activity;
    5. import android.content.Intent;
    6.  
    7. public class UnityBinder {
    8.     public static void OpenGallery(Activity activity)
    9.     {
    10.  
    11.         Intent intent =new Intent(activity,Gallery.class);
    12.         activity.startActivity(intent);
    13.  
    14.     }
    15.  
    16. }
    17.  
    Gallery.Java

    Code (CSharp):
    1.  
    2. package com.techripples.unityplugin;
    3.  
    4. import android.app.Activity;
    5. import android.content.Intent;
    6. import android.os.Bundle;
    7. import android.provider.MediaStore;
    8. import android.net.Uri;
    9. import android.database.*;
    10. import com.unity3d.player.*;
    11.  
    12.  
    13.  
    14. //import androidx.annotation.Nullable;
    15.  
    16. public class Gallery extends Activity {
    17.  
    18.     int PHOTO_GALLERY=1;
    19.  
    20.     @Override
    21.     protected void onCreate(Bundle bundle)
    22.     {
    23.         super.onCreate(bundle);
    24.         Intent intent=new Intent(Intent.ACTION_PICK, MediaStore.Images.Media.EXTERNAL_CONTENT_URI);
    25.         startActivityForResult(intent,PHOTO_GALLERY);
    26.     }
    27.  
    28.     //it will run when user picks a photo from the gallery
    29.     @Override
    30.     protected void onActivityResult(int requestCode, int resultCode, Intent data) {
    31.         super.onActivityResult(requestCode, resultCode, data);
    32.  
    33.         if(resultCode==RESULT_OK && requestCode==PHOTO_GALLERY && data!=null)
    34.         {
    35.  
    36.             Uri uri=data.getData();
    37.             String[] fileColoumn={MediaStore.Images.Media.DATA};
    38.             Cursor cursor=getContentResolver().query(uri,fileColoumn,null,null,null);
    39.             cursor.moveToFirst();
    40.             int coloumnIndex=cursor.getColumnIndex(fileColoumn[0]);
    41.             String photoPath=cursor.getString(coloumnIndex);
    42.  
    43.  
    44.             //Send path to unity to get photo
    45.                                             //GamObject Name,method name,argument
    46.             UnityPlayer.UnitySendMessage("Gallery","OnPhotoPick",photoPath);
    47.             Gallery.this.finish();//close activity
    48.  
    49.         }
    50.     }
    51. }
    52.  
    53.  
    C sharp Code in Unity-attached the below code to Gamobject-Gallery


    Code (CSharp):
    1. public class ShowPicture : MonoBehaviour
    2. {
    3.  
    4.     Texture2D galleryImage;
    5.     bool isGalleryImageLoaded = false;
    6.  
    7.     WWW www;
    8.  
    9.     // Start is called before the first frame update
    10.     void Start()
    11.     {
    12.        
    13.     }
    14.  
    15.     // Update is called once per frame
    16.     void Update()
    17.     {
    18.        
    19.     }
    20.  
    21.     void OnGUI()
    22.     {
    23.  
    24.         if(isGalleryImageLoaded)
    25.         {
    26.             GUI.DrawTexture(new Rect(0, 0, Screen.width, Screen.height), galleryImage);
    27.  
    28.         }
    29.         if(GUI.Button(new Rect(50,50,100,100),"Open"))
    30.         {
    31.  
    32.             isGalleryImageLoaded = false;
    33.             AndroidJavaClass ajc = new AndroidJavaClass("com.unity.player.UnityPlayer");
    34.  
    35.             AndroidJavaClass ajo = new AndroidJavaClass("com.techripples.unityplugin.UnityBinder");
    36.             ajo.CallStatic("OpenGallery", ajc.GetStatic<AndroidJavaObject>("currentActivity"));
    37.         }
    38.    
    39.         if(www!=null && www.isDone)
    40.         {
    41.             galleryImage = new Texture2D(www.texture.width, www.texture.height);
    42.             galleryImage.SetPixels32(www.texture.GetPixels32());
    43.             galleryImage.Apply();
    44.             www = null;
    45.  
    46.             isGalleryImageLoaded = true;
    47.  
    48.         }
    49.  
    50.     }
    51.  
    52.  
    53.     public void OnPhotoPick(string filePath)
    54.     {
    55.         Debug.Log(filePath);
    56.  
    57.         www = new WWW("file://" + filePath);
    58.     }
    59. }
    60.  

    I am getting the error
    Didn't find class "com/unity/player/UnityPlayer" on the terminal.I checked the manifest but cant find any problem
     
  31. Shefich

    Shefich

    Joined:
    May 23, 2013
    Posts:
    29
    Hello,

    I still have the issue.
    Unity 2018.4.16f1 (64-bit)

    Error from Fabric: com.unity3d.player.UnityPlayer.<clinit>
    Code (CSharp):
    1. Caused by java.lang.UnsatisfiedLinkError: dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/com.company.name-U57MqHgwcD-AgvH9ceCZKw==/base.apk"],nativeLibraryDirectories=[/data/app/com.company.name-U57MqHgwcD-AgvH9ceCZKw==/lib/arm, /system/lib, /vendor/lib]]] couldn't find "libmain.so"
    2.       at java.lang.Runtime.loadLibrary0 + 1011(Runtime.java:1011)
    3.       at java.lang.System.loadLibrary + 1657(System.java:1657)
    4.       at com.unity3d.player.UnityPlayer.<clinit> + 10(:10)
    5.       at com.unity3d.player.UnityPlayerActivity.onCreate + 30(:30)
    6.       at android.app.Activity.performCreate + 7009(Activity.java:7009)
    7.       at android.app.Activity.performCreate + 7000(Activity.java:7000)
    8.       at android.app.Instrumentation.callActivityOnCreate + 1214(Instrumentation.java:1214)
    9.       at android.app.ActivityThread.performLaunchActivity + 2742(ActivityThread.java:2742)
    10.       at android.app.ActivityThread.handleLaunchActivity + 2872(ActivityThread.java:2872)
    11.       at android.app.ActivityThread.-wrap11()
    12.       at android.app.ActivityThread$H.handleMessage + 1595(ActivityThread.java:1595)
    13.       at android.os.Handler.dispatchMessage + 106(Handler.java:106)
    14.       at android.os.Looper.loop + 164(Looper.java:164)
    15.       at android.app.ActivityThread.main + 6543(ActivityThread.java:6543)
    16.       at java.lang.reflect.Method.invoke(Method.java)
    17.       at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run + 440(RuntimeInit.java:440)
    18.       at com.android.internal.os.ZygoteInit.main + 810(ZygoteInit.java:810)
     
  32. Shefich

    Shefich

    Joined:
    May 23, 2013
    Posts:
    29
    And another issue:

    Code (CSharp):
    1. Caused by java.lang.UnsatisfiedLinkError: Native method not found: com.unity3d.player.UnityPlayer.nativeRestartActivityIndicator:()V
    2.        at com.unity3d.player.UnityPlayer.nativeRestartActivityIndicator()
    3.        at com.unity3d.player.UnityPlayer.resume()
    4.        at com.unity3d.player.UnityPlayerActivity.onResume()
    5.        at android.app.Instrumentation.callActivityOnResume + 1184(Instrumentation.java:1184)
    6.        at android.app.Activity.performResume + 5082(Activity.java:5082)
    7.        at android.app.ActivityThread.performResumeActivity + 2649(ActivityThread.java:2649)
    8.        at android.app.ActivityThread.handleResumeActivity + 2687(ActivityThread.java:2687)
    9.        at android.app.ActivityThread.handleLaunchActivity + 2172(ActivityThread.java:2172)
    10.        at android.app.ActivityThread.access$600 + 134(ActivityThread.java:134)
    11.        at android.app.ActivityThread$H.handleMessage + 1278(ActivityThread.java:1278)
    12.        at android.os.Handler.dispatchMessage + 99(Handler.java:99)
    13.        at android.os.Looper.loop + 150(Looper.java:150)
    14.        at android.app.ActivityThread.main + 4828(ActivityThread.java:4828)
    15.        at java.lang.reflect.Method.invokeNative(Method.java)
    16.        at java.lang.reflect.Method.invoke + 511(Method.java:511)
    17.        at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run + 786(ZygoteInit.java:786)
    18.        at com.android.internal.os.ZygoteInit.main + 553(ZygoteInit.java:553)
    19.        at dalvik.system.NativeStart.main(NativeStart.java)
     
  33. DerLasseHenrich

    DerLasseHenrich

    Joined:
    Aug 31, 2017
    Posts:
    3
  34. Vasiliy-V-V

    Vasiliy-V-V

    Joined:
    Dec 9, 2013
    Posts:
    7
    Hello,
    I got this crash on Unity 2018.4.20f1.

    In my app on start game is auto auth in google play games. And Google Play SDK show confirm window if update available ( https://monosnap.com/file/UrzSnLxSSTrNJ43LRCEoRuBfZuf1KN )

    After click "Update" it's open Google Play page of Google Play Games ( https://monosnap.com/file/E0xi7j5RGfe1JZiLAgE43eumgiJV6b ).

    There is was update of Google Play Games on 30 martch 2020 and in my google play console I saw that: https://monosnap.com/file/r4Y040sWPCNWAff1sceobcmZeNwauX

    Crashes appeared on April 1.

    So I think if Google Play Games not installed or need update, on some devices after transition to Google Play and calling Application.Quit() (probably users clicked back button on loading screen) app crashing.

    Short log: https://pastebin.com/2kXUVU1U
    Full log from google play auto report: https://pastebin.com/Zg4wTHTT
     
    Rutger likes this.
  35. Tomas1856

    Tomas1856

    Unity Technologies

    Joined:
    Sep 21, 2012
    Posts:
    2,289
    The error you posted seems to be different from the one discussed in this thread? Any reason why you're posting in this thread?
     
  36. Rutger

    Rutger

    Joined:
    Sep 17, 2013
    Posts:
    34
    Just replied here to Vasiliy, but see your point.

    To expedite the solving of the issue I'll create a new thread for this. And delete my reply here.

    New thread about this problem here
     
    Last edited: Apr 15, 2020
  37. Vasiliy-V-V

    Vasiliy-V-V

    Joined:
    Dec 9, 2013
    Posts:
    7
    Oh, right. Sorry. I made a mistake.
     
  38. Megafun2018

    Megafun2018

    Joined:
    May 26, 2020
    Posts:
    1
    i have the same issue, but not all devices hapen. it looks like when my app reactive from backgroud to foreground, something might wrong, what i guess the memory might be released or something we dont know.did anyone try runinbackground?or something can make UnityActivity keep alive?
     
  39. far00q

    far00q

    Joined:
    Apr 22, 2020
    Posts:
    6
    I'm facing this crash! can anyone please guide me to solve this issue, This is hard to me to understand the issue it doesn't seems to be like Google ads issue
    Code (CSharp):
    1. java.lang.Error: FATAL EXCEPTION [main]
    2. Unity version     : 2018.4.9f1
    3. Device model      : samsung SM-J410F
    4. Device fingerprint: samsung/j4coreltejx/j4corelte:8.1.0/M1AJB/J410FXXU1ASB1:user/release-keys
    5. Caused by
    6.   at com.unity3d.player.UnityPlayer.nativeRestartActivityIndicator (Native Method)
    7.   at com.unity3d.player.UnityPlayer.resume (Unknown Source:23)
    8.   at com.unity3d.player.UnityPlayerActivity.onResume (Unknown Source:5)
    9.   at android.app.Instrumentation.callActivityOnResume (Instrumentation.java:1355)
    10.   at android.app.Activity.performResume (Activity.java:7117)
    11.   at android.app.ActivityThread.performResumeActivity (ActivityThread.java:3572)
    12.   at android.app.ActivityThread.handleResumeActivity (ActivityThread.java:3637)
    13.   at android.app.ActivityThread.handleLaunchActivity (ActivityThread.java:2878)
    14.   at android.app.ActivityThread.-wrap11 (Unknown Source)
    15.   at android.app.ActivityThread$H.handleMessage (ActivityThread.java:1595)
    16.   at android.os.Handler.dispatchMessage (Handler.java:106)
    17.   at android.os.Looper.loop (Looper.java:164)
    18.   at android.app.ActivityThread.main (ActivityThread.java:6543)
    19.   at java.lang.reflect.Method.invoke (Native Method)
    20.   at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:440)
    21.   at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:810)
     
  40. far00q

    far00q

    Joined:
    Apr 22, 2020
    Posts:
    6
    i think you should read the exception and details again to Answer my question
     
unityunity