You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Sep 14, 2020. It is now read-only.
java.lang.UnsatisfiedLinkError: dalvik.system.PathClassLoader[DexPathList[[zip file "/system/framework/android.test.runner.jar", zip file "/data/app/com.example.app.android-3vNKvOYNFBjegL3oUY_FYw==/base.apk"],nativeLibraryDirectories=[/data/app/com.example.app.android-3vNKvOYNFBjegL3oUY_FYw==/lib/arm64, /system/lib64, /vendor/lib64]]] couldn't find "libbugsnag-ndk.so"
FATAL EXCEPTION: main
Process: com.example.app.android, PID: 10716
java.lang.UnsatisfiedLinkError: dalvik.system.PathClassLoader[DexPathList[[zip file "/system/framework/android.test.runner.jar", zip file "/data/app/com.example.app.android-3vNKvOYNFBjegL3oUY_FYw==/base.apk"],nativeLibraryDirectories=[/data/app/com.example.app.android-3vNKvOYNFBjegL3oUY_FYw==/lib/arm64, /system/lib64, /vendor/lib64]]] couldn't find "libbugsnag-ndk.so"
at java.lang.Runtime.loadLibrary0(Runtime.java:1011)
at java.lang.System.loadLibrary(System.java:1657)
at com.bugsnag.android.NdkPlugin.<clinit>(NdkPlugin.kt:9)
at java.lang.Class.classForName(Native Method)
at java.lang.Class.forName(Class.java:453)
at java.lang.Class.forName(Class.java:378)
at com.bugsnag.android.Client.<init>(Client.java:240)
at com.bugsnag.android.Bugsnag.init(Bugsnag.java:77)
at com.bugsnag.android.Bugsnag.init(Bugsnag.java:64)
at com.bugsnag.android.Bugsnag.init(Bugsnag.java:37)
at com.bugsnag.BugsnagReactNative.start(BugsnagReactNative.java:46)
at com.example.app.android.MainApplication.onCreate(MainApplication.java:125)
at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1118)
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:5791)
at android.app.ActivityThread.-wrap1(Unknown Source:0)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1661)
at android.os.Handler.dispatchMessage(Handler.java:105)
at android.os.Looper.loop(Looper.java:164)
at android.app.ActivityThread.main(ActivityThread.java:6541)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:240)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:767)
import{Client,Configuration}from'bugsnag-react-native';initCrashReporter(key,codeBundleId){if(this.instance===null){if(key==null){thrownewError(`Crash Reporter should be created with a key as the first param. i.e .create(key, reduxStore)`);}constbugsnagConfig=newConfiguration(key);// enable session-tracking to provide crash rates between releases// https://docs.bugsnag.com/platforms/react-native/#session-trackingbugsnagConfig.autoCaptureSessions=true;bugsnagConfig.shouldNotify=()=>!__DEV__;if(codeBundleId){bugsnagConfig.appVersion=codeBundleId;bugsnagConfig.codeBundleId=codeBundleId;}bugsnagConfig.notifyReleaseStages=['production','staging','testflight'];// create a breadcrumb for all console.logsbugsnagConfig.consoleBreadcrumbsEnabled=true;constthat=this;bugsnagConfig.registerBeforeSendCallback(async(report)=>{constmetadata=report.metadata||{};if(that&&that.mStore){conststate=JSON.parse(JSON.stringify(that.mStore.getState()));metadata.device=state.device;metadata.global=state.global;metadata.router=state.router;metadata.auth=state.auth;}if(report.errorClass==='AcuityError'){// if an acuity error, change the severityreport.severity='error';}const{
curAppVersion,// baseV,// codepushV,
pendingFailed,
pendingVersion,
isFirstRunOfRunningCodepushVersion,}=awaitOTAUpdateManager.getAppVersion(CONFIG.VERSION);if(metadata.app==null){metadata.app={};}// overwrite codeBundleId (version) make sure we use the current versionif(curAppVersion&&metadata.app.codeBundleId!==curAppVersion){metadata.app.tmpVersion=metadata.app.codeBundleId;metadata.app.codeBundleId=curAppVersion;}if(metadata.device==null){metadata.device={};}metadata.device.pendingFailed=pendingFailed;metadata.device.pendingVersion=pendingVersion;metadata.device.isFirstRunOfRunningCodepushVersion=isFirstRunOfRunningCodepushVersion;report.metadata=metadata;returntrue;// return false to send no error});this.instance=newClient(bugsnagConfig);}returnthis.instance;}
</details>
The text was updated successfully, but these errors were encountered:
Hi @SudoPlz this seems like a possible duplicate of: #369 (comment) - can you try the solution mentioned in that thread?
e.g. These intermittent linkage errors can occur particularly on older versions of Android. Our suggested approach to avoid them would be to preload the SO file with ReLinker:
If you have a minimum SDK level of 23, we didn't think the ReLinker was going to do much to help in that case. However, there is anecdotal evidence that there are still issues with Android loading libraries even on SDK level 23 and above, where ReLinker has fixed this for them. I think it's worth giving ReLinker a go to see if it fixes the issue for you. Could you try this and let us know if it helps?
Description
Our app crashes during app launch
Issue
Environment
Library versions:
How we set up Bugsnag
MainApplication.java
CrashReporter.js
The text was updated successfully, but these errors were encountered: