UnsatisfiedLinkError on Android
See original GitHub issueI’m running into theses errors on Android lately. Does anyone experience something similar?
UnsatisfiedLinkError
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(Unknown Source)
at com.unity3d.player.UnityPlayer.resume(Unknown Source:23)
at com.reactnative.unity.view.UnityViewManager.onHostResume(UnityViewManager.java:63)
at com.facebook.react.bridge.ReactContext.onHostResume(ReactContext.java:184)
at com.facebook.react.ReactInstanceManager.moveToResumedLifecycleState(ReactInstanceManager.java:649)
at com.facebook.react.ReactInstanceManager.onHostResume(ReactInstanceManager.java:568)
at com.facebook.react.ReactInstanceManager.onHostResume(ReactInstanceManager.java:524)
at com.facebook.react.ReactActivityDelegate.onResume(ReactActivityDelegate.java:105)
at com.facebook.react.ReactActivity.onResume(ReactActivity.java:64)
at android.app.Instrumentation.callActivityOnResume(Instrumentation.java:1361)
at android.app.Activity.performResume(Activity.java:7353)
at android.app.ActivityThread.performResumeActivity(ActivityThread.java:3763)
at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:3828)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3036)
at android.app.ActivityThread.-wrap11(Unknown Source)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1696)
at android.os.Handler.dispatchMessage(Handler.java:105)
at android.os.Looper.loop(Looper.java:164)
at android.app.ActivityThread.main(ActivityThread.java:6938)
at java.lang.reflect.Method.invoke(Method.java)
at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:327)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1374)
Unity
2018.3.6f1
react-native-unity-view
1.3.3
React Native Environment Info
System:
OS: macOS 10.14
CPU: (8) x64 Intel(R) Core(TM) i7-6920HQ CPU @ 2.90GHz
Memory: 461.81 MB / 16.00 GB
Shell: 3.2.57 - /bin/bash
Binaries:
Node: 8.15.0 - /usr/local/opt/node@8/bin/node
Yarn: 1.13.0 - /usr/local/bin/yarn
npm: 6.4.1 - /usr/local/opt/node@8/bin/npm
Watchman: 4.9.0 - /usr/local/bin/watchman
SDKs:
iOS SDK:
Platforms: iOS 12.1, macOS 10.14, tvOS 12.1, watchOS 5.1
Android SDK:
API Levels: 21, 23, 24, 25, 26, 27, 28
Build Tools: 23.0.1, 26.0.2, 27.0.1, 27.0.3, 28.0.1, 28.0.3
System Images: android-21 | Google APIs ARM EABI v7a, android-26 | Google APIs Intel x86 Atom
IDEs:
Android Studio: 3.3 AI-182.5107.16.33.5199772
Xcode: 10.1/10B61 - /usr/bin/xcodebuild
npmPackages:
react: 16.5.0 => 16.5.0
react-native: 0.57.8 => 0.57.8
Issue Analytics
- State:
- Created 5 years ago
- Comments:11
Top Results From Across the Web
Why do some Android phones cause our app to throw an java ...
I tried it with one of my apps and got an "unsatisfied link error" crash report from a customer who updated anyway. Incomplete...
Read more >UnsatisfiedLinkError - Android Developers
UnsatisfiedLinkError (). Constructs an UnsatisfiedLinkError with no detail message. UnsatisfiedLinkError(String s). Constructs an UnsatisfiedLinkError with ...
Read more >[SOLVED] UnsatisfiedLinkError Problem on Some Android ...
I am currently working on an android application which streams radio. (This is the app). I use native decoder library which is called...
Read more >Android app is crashing and giving error java.lang ...
We are using zoom sdk 5.10.3. Exception java.lang.UnsatisfiedLinkError: No implementation found for long com.zipow.videobox.confapp.ConfMgr.
Read more >java.lang.UnsatisfiedLinkError - Android - Solar2D Game Engine
UnsatisfiedLinkError : at java.lang.Runtime. ... java.lang.UnsatisfiedLinkError ... performCreate (Activity.java:8290) at android.app.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I found that the problem occurred in two cases;
It seems like the unity libs are unloaded from the classpath when this happens?
I made some changes to re-initialize the unity player instance when this happens. I made a fork for this (https://github.com/f111fei/react-native-unity-view/compare/master...honeyp0t:master) with a tiny fix, which I use in conjunction with a call to
UnityModule.createUnity()
whenever the app is opened (not just on initial launch).Not claiming that this is the solution 💯 , as the unity startup takes some time, but I’m testing it out right now and it seems to have resolved the crash in my app. 😅
没有明白