-
Notifications
You must be signed in to change notification settings - Fork 121
[Android] couldn't find "libbugsnag-ndk.so" #369
Comments
Thanks for the report, @tgensol. What version of Android is on the device? |
I have errors with : |
Hi @tgensol - I've tried following the integration instructions in our I also decompiled the APK using Android Studio's APK analyzer which confirmed that the SO files are in the If your app uses APK splits or App Bundles that would also be very useful to know, and particularly what architectures you build for if so. This error can sometimes be caused by users side-loading an APK split which is the wrong architecture for their device, so it'd be good to rule that out. |
Hi @fractalwrench ,
Maybe my build.gradle file is mis-configured ? I am using
whereas in your examples you are using :
I will put an example of error I got today :
Best regards |
Hi @tgensol - your build.gradle seems configured correctly. If you're using App Bundles then sometimes this can result in an Would you be able to send in a URL of an |
Hi @fractalwrench , our app also encountered this issue. Here is the issue link to our dashboard. |
Hi @pqkluan We've taken a look at your error and the occurrences fall into two cases.
|
Hi, @mattdyoung Thanks for the advice, but I don't think the 1st theory is possible since there are more than 150 users affected by this issue, and there shouldn't be not that much people willing to manually install our app outside of PlayStore. For the 2nd one, downgrading the Android Gradle Plugin is also not a possible solution for us since there are other dependencies require newer gradle version. |
Hi @pqkluan Regarding 1, roughly what percentage of your userbase are the 150 users? Are you seeing this only on particular devices? For 2, there is very little we can do as this is an issue with Android Gradle Plugin: That thread suggested that using |
I encounter the same error on my dev build since Android Studio 3.5 and gradle update and migration to AndroidX with bugsnag 4.16 |
@ben-j69 thanks for your comment. I don't know if you saw @mattdyoung response above?
|
seeing the same issue as @ben-j69 with |
With react-native 61, build tools is now at 3.5.0: https://github.com/facebook/react-native/blob/4763000554c71be40b82a740651706781acad2e3/template/android/build.gradle#L15 |
Hi @benoitdion Which error are you seeing? Is it one of the errors referred to in my previous response here? Or something different? Would you be able to write in to support@bugsnag.com with a link to the related error in your Bugsnag dashboard so we can examine the full stacktrace and see if we can identify the cause? |
I have same issue on version v4.6.5. |
@khonkaengame Also v4.6.5 of which library? |
It's Bugsnag.unitypackage library.
…On Wed, Sep 25, 2019 at 8:35 PM Matt Young ***@***.***> wrote:
@khonkaengame <https://github.com/khonkaengame>
Are you seeing one of the 2 errors described in my previous response here?
#369 (comment)
<#369 (comment)>
Also v4.6.5 of which library?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#369?email_source=notifications&email_token=AKCBWDACGSLOHTSRAQHZHWTQLNSLZA5CNFSM4HYU4UW2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD7R5R7Y#issuecomment-535025919>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AKCBWDBQYXI6PIKJWWODAJDQLNSLZANCNFSM4HYU4UWQ>
.
|
@khonkaengame are you able to say which of the errors you are seeing? |
@abigail-bugsnag Here is full error : More detail, I build by select on build app bundle(google play). |
We've seen this error caused by users side-loading an APK split generated from an App Bundle which is the wrong architecture for their device. Are you able to reproduce this error on an app installed from the play store, rather than an APK downloaded from an unofficial source? |
Hi @khonkaengame @pqkluan @ben-j69 @benoitdion (and anyone else seeing this error). We've been investigating further and there are a few scenarios where linkage errors can occur which would result in you seeing the error message
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're also using our ANR detection you may see a similar error message
We did consider including and using ReLinker directly in bugsnag-android but decided against it as this would have had an impact on the size of the library, even for customers unaffected by this issue. |
@mattdyoung Thank you i will try. |
Description
I upgraded Bugsnag-react-native to the latest version, and some users are getting crash when they tried to open the app. I am getting an error in bugsnag :
java.lang.UnsatisfiedLinkErrorMainApplication.java:146
What did I miss in the configuration ? I am using RN 0.59 with gradle 5.4.1 and useAndroidX set to true.
Thanking you in advance,
Regards
Issue
Environment
simulator/emulator or physical device?: Physical
debug mode or production?: production
[X ] (Android only)
BugsnagReactNative.start(this)
is present in theonCreate
method of yourMainApplication
class?Error messages:
ava.lang.UnsatisfiedLinkError · dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/com.appchoose.choose.android-1/base.apk"],nativeLibraryDirectories=[/data/app/com.appchoose.choose.android-1/lib/arm64, /system/lib64, /vendor/lib64]]] couldn't find "libbugsnag-ndk.so"The text was updated successfully, but these errors were encountered: