android: Crash reports in Google Play: UnsatisfiedLinkError
Steps to Reproduce
I am receiving app crash reports in Google Play after I switched from uploading 2 APKs (for 32 & 64bit) to an .aab Bundle. No other major changes in the code and project settings were made compared to the previous app version. Affected devices (so far) are Galaxy A50, Galaxy J4+, LG G6, Galaxy S10, Galaxy J7 (all running Android 9)
Expected Behavior
App loads without any problems during startup
Actual Behavior
App crashes with java.lang.UnsatisfiedLinkError
java.lang.UnsatisfiedLinkError:
at java.lang.Runtime.loadLibrary0 (Runtime.java:1016)
at java.lang.System.loadLibrary (System.java:1669)
at mono.MonoPackageManager.LoadApplication (Unknown Source:220)
at mono.MonoRuntimeProvider.attachInfo (Unknown Source:41)
at android.app.ActivityThread.installProvider (ActivityThread.java:6786)
at android.app.ActivityThread.installContentProviders (ActivityThread.java:6333)
at android.app.ActivityThread.handleBindApplication (ActivityThread.java:6248)
at android.app.ActivityThread.access$1200 (ActivityThread.java:240)
at android.app.ActivityThread$H.handleMessage (ActivityThread.java:1797)
at android.os.Handler.dispatchMessage (Handler.java:106)
at android.os.Looper.loop (Looper.java:214)
at android.app.ActivityThread.main (ActivityThread.java:7094)
at java.lang.reflect.Method.invoke (Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:494)
at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:975)
Version Information
The app was build with VS 16.4.0 and the Xamarin.iOS version that came with it
Other
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<Optimize>true</Optimize>
<OutputPath>bin\Release</OutputPath>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<AndroidUseSharedRuntime>false</AndroidUseSharedRuntime>
<AotAssemblies>true</AotAssemblies>
<EnableLLVM>true</EnableLLVM>
<AndroidEnableMultiDex>false</AndroidEnableMultiDex>
<AndroidSupportedAbis />
<AndroidLinkMode>Full</AndroidLinkMode>
<AndroidHttpClientHandlerType>Xamarin.Android.Net.AndroidClientHandler</AndroidHttpClientHandlerType>
<AndroidTlsProvider>btls</AndroidTlsProvider>
<BundleAssemblies>true</BundleAssemblies>
<AndroidEnableSGenConcurrent>true</AndroidEnableSGenConcurrent>
<NoWarn>IDE0044</NoWarn>
<AndroidDexTool>d8</AndroidDexTool>
<AndroidLinkTool>r8</AndroidLinkTool>
<EmbedAssembliesIntoApk>true</EmbedAssembliesIntoApk>
<AndroidUseAapt2>true</AndroidUseAapt2>
<AndroidCreatePackagePerAbi>false</AndroidCreatePackagePerAbi>
<AndroidEnableProfiledAot>false</AndroidEnableProfiledAot>
<DefineConstants>TRACE</DefineConstants>
<LangVersion>8.0</LangVersion>
<AndroidPackageFormat>aab</AndroidPackageFormat>
</PropertyGroup>
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Reactions: 1
- Comments: 32 (7 by maintainers)
@CDrosos / @BioTurboNick if these installs are outside Google Play, there is probably one these happening:
.apkon a device your app doesn’t really support..apkfiles for their specific device. You would generally need to install 4.apkfiles for an app bundle manually, if you aren’t usingbundletool.When I worked for a different company, our games were commonly pirated in China and other countries. So much so, we made an official version for China with custom content and submitted this version to 20+ of their app stores.
@radekdoulik We are also having Google Play Crashes regarding UnsatisfiedLinkError:
We are using App Bundle and Visual Studio 2019 16.4.5 targeting Android 10.
These two are the most popular crashes in our app and we don’t know how to solve it or investigate further as we are not able to reproduce these crashes even with the same test devices with same Android versions.
So what do you suggest in order to solve these issues?
@jonathanpeppers , in our case the crashes also appear for officially installed apps by Google Play. Unfortunately we are using MS AppCenter and cannot use Firebase.
I doubt it. I used to get this error even before I used ProGuard. I think the issue is rather more fundamental in that one or more of the shared libraries are simply not present.
Same issue here - after switching to app bundle. So perhaps the issue is with app bundle?