Search Unity

No implementation found for native Lcom/unity3d/player/UnityPlayer;.nativeRestartActivityIndicator:(

Discussion in 'Android' started by busyxiang, Oct 7, 2019.

  1. busyxiang

    busyxiang

    Joined:
    Jun 7, 2016
    Posts:
    6
    I am having this issue where running my app on Android 4.2( Jelly Bean ) will crash immediately but I am able to run my app on newer android version without any issue. I am currently using Unity 2019.1.2f1, already set minimum API level to 17, and only using one localization plugin that bought from the Asset Store.

    PS: Since I do not have an Android 4.2 version device, I am using Android Studio emulator to test my app.

    Below is the log message that I catched using logcat.

    10-07 09:47:06.864 6500-6500/? D/dalvikvm: GC_FOR_ALLOC freed 73K, 6% free 3261K/3436K, paused 30ms, total 31ms
    10-07 09:47:06.864 6500-6500/? I/dalvikvm-heap: Grow heap (frag case) to 5.131MB for 1939936-byte allocation
    10-07 09:47:06.904 6500-6509/? D/dalvikvm: GC_FOR_ALLOC freed <1K, 4% free 5155K/5332K, paused 31ms, total 31ms
    10-07 09:47:07.014 6500-6500/? W/dalvikvm: No implementation found for native Lcom/unity3d/player/UnityPlayer;.nativeRestartActivityIndicator:()V
    10-07 09:47:07.014 6500-6500/? D/AndroidRuntime: Shutting down VM
    10-07 09:47:07.024 6500-6500/? W/dalvikvm: threadid=1: thread exiting with uncaught exception (group=0x95a2bba8)
    10-07 09:47:07.024 6500-6500/? E/AndroidRuntime: FATAL EXCEPTION: main
    Process: com.company.appname, PID: 6500
    java.lang.Error: FATAL EXCEPTION [main]
    Unity version : 2019.1.2f1
    Device model : unknown google_sdk
    Device fingerprint: generic/google_sdk/generic:4.4.2/KK/5460992:eng/test-keys

    Caused by: java.lang.UnsatisfiedLinkError: Native method not found: com.unity3d.player.UnityPlayer.nativeRestartActivityIndicator:()V
    at com.unity3d.player.UnityPlayer.nativeRestartActivityIndicator(Native Method)
    at com.unity3d.player.UnityPlayer.resume(Unknown Source)
    at com.unity3d.player.UnityPlayerActivity.onResume(Unknown Source)
    at android.app.Instrumentation.callActivityOnResume(Instrumentation.java:1192)
    at android.app.Activity.performResume(Activity.java:5310)
    at android.app.ActivityThread.performResumeActivity(ActivityThread.java:2778)
    at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:2817)
    at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2250)
    at android.app.ActivityThread.access$800(ActivityThread.java:135)
    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1196)
    at android.os.Handler.dispatchMessage(Handler.java:102)
    at android.os.Looper.loop(Looper.java:136)
    at android.app.ActivityThread.main(ActivityThread.java:5017)
    at java.lang.reflect.Method.invokeNative(Native Method)
    at java.lang.reflect.Method.invoke(Method.java:515)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:779)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:595)
    at dalvik.system.NativeStart.main(Native Method)
    10-07 09:47:07.034 1087-1419/? W/ActivityManager: Force finishing activity com.company.appname/com.unity3d.player.UnityPlayerActivity
    10-07 09:47:07.064 1313-1313/? D/EGL_emulation: eglMakeCurrent: 0xb88a3840: ver 2 0
    10-07 09:47:07.384 1087-1419/? I/WindowManager: Screenshot max retries 4 of Token{95d4dd80 ActivityRecord{95d4e428 u0 com.company.appname/com.unity3d.player.UnityPlayerActivity t77 f}} appWin=Window{9626f940 u0 Starting com.company.appname} drawState=4
    10-07 09:47:07.384 1087-1419/? W/WindowManager: Screenshot failure taking screenshot for (1080x1920) to layer 21010
    10-07 09:47:07.574 655-707/? D/gralloc_ranchu: gralloc_alloc: Creating ashmem region of size 1114112
    10-07 09:47:07.804 1087-1101/? D/dalvikvm: GC_FOR_ALLOC freed 1343K, 29% free 13822K/19264K, paused 72ms, total 76ms
    10-07 09:47:07.904 1087-1102/? W/ActivityManager: Activity pause timeout for ActivityRecord{95d4e428 u0 com.company.appname/com.unity3d.player.UnityPlayerActivity t77 f}
     
    Last edited: Oct 7, 2019
  2. kilicbatuhan1205

    kilicbatuhan1205

    Joined:
    Dec 20, 2018
    Posts:
    27
    Could you fix this?
     
  3. dominykasm

    dominykasm

    Unity Technologies

    Joined:
    May 27, 2018
    Posts:
    70
    Hi, do you have Install Location set to Prefer External? Might be that it crashes when the app is installed on an SD card which is a known issue.