-
Notifications
You must be signed in to change notification settings - Fork 2.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
couldn't find "libbarhopper_v2.so" #483
Comments
libbarhopper_v2.so is from an old version 16.2.0, can you try the latest SDK version 17.0.2 instead? |
I am still facing this issue on 17.0.2 version. Fatal Exception: java.lang.UnsatisfiedLinkError |
facing the same crash, any way to prevent the lib from crashing , consumers are having bad experience. |
Hi, this error means the native library wasn't loaded correctly. Could you check the native library was there in your built APK, for the correct architecture, normally arm64? Did you configure anything like https://developers.google.com/ml-kit/tips/reduce-app-size#advanced_exclude_unused_ml_kit_binaries in your app? |
I also encounter this crash on version 17.0.2 and below Fatal Exception: java.lang.UnsatisfiedLinkError: dlopen failed: library "libbarhopper_v3.so" not found |
Could you check the native library was there in your built APK, for the correct architecture, normally arm64? Did you configure anything like https://developers.google.com/ml-kit/tips/reduce-app-size#advanced_exclude_unused_ml_kit_binaries in your app? |
As far as I remember, there was no problem with the universal apk. The problem appeared when using the app bundle. The configuration of abiFilters is present: ndk { When building the app bundle under arm64-v8a, the library is present in the set by architecture. (1- App bundle content, 2- base-arm64_v8a.apk content) |
same issue on 17.0.3. has anyone found a solution to this? |
Searching. Noticed this bug on universal apk as well, so the bug is reproduced by app bundle/universal apk |
Fatal Exception: java.lang.UnsatisfiedLinkError: dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/co.tinode.tindroidx-g0RQaGr2XCRWbVBaDGsvNQ==/base.apk"],nativeLibraryDirectories=[/data/app/co.tinode.tindroidx-g0RQaGr2XCRWbVBaDGsvNQ==/lib/x86, /system/lib, /vendor/lib]]] couldn't find "libbarhopper_v3.so" |
Got the same exception in versions 17.0.2, 17.0.3, 17.1.0. |
I realised this was the cause of the issue. If the base app (which contains the barcode library) is installed and no other module is installed, it works fine. If a module is installed and the activity is restarted, it works fine. If a new module has just been installed in the current activity but the native libraries aren't reloaded and the activity isn't restarted, it causes this kind of crash. Hopefully that can give a hint to some of you. |
Got the same exception with the version 17.2.0.
with Android 8.1, Android 11... Do you have any news? |
I had the same problem on some phones and I reproduced it. After the APP successfully loads the dynamic module, if I enter the QR code scanning page without restarting the APP, this error will occur. But when I restarted the APP, this error disappeared. I solved the issue with the following method: mSplitInstallManager.registerListener {
when (it.status()) {
SplitInstallSessionStatus.INSTALLED -> {
// After the dynamic module is installed, use SplitInstallHelper.loadLibrary to load the so library
try {
val newContext = this.createPackageContext(this.packageName, 0)
SplitInstallHelper.loadLibrary(newContext, "barhopper_v3")
} catch (e: UnsatisfiedLinkError) {
e.printStackTrace()
}
// And then proceed with your work
}
}
} |
Same issue on 17.3.0 |
I am experiencing the same issue
Did anyone find a solution for this |
@JustAClamber can i check with you what is the reason to use |
I had the same issue occurs on 17.1.0 when combined with Dynamic Feature Module. The error happens when the scanner is first opened after installing the dynamic module, but the problem disappears after reopening the app. I've already tried @JustAClamber solution but still not working using SplitInstallHelper.loadLibrary with these libs name Device:
|
CrashHandler[133]: java.lang.UnsatisfiedLinkError: dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/com.szsbay.smarthome.alpha-nawDjNvWFlw9cZ2vLVywAQ==/base.apk"],nativeLibraryDirectories=[/data/app/com.szsbay.smarthome.alpha-nawDjNvWFlw9cZ2vLVywAQ==/lib/arm, /data/app/com.szsbay.smarthome.alpha-nawDjNvWFlw9cZ2vLVywAQ==/base.apk!/lib/armeabi, /system/lib, /system/vendor/lib]]] couldn't find "libbarhopper_v2.so":Exception:java.lang.UnsatisfiedLinkError
at java.lang.Runtime.loadLibrary0(Runtime.java:1011)
at java.lang.System.loadLibrary(System.java:1657)
at com.google.android.libraries.barhopper.BarhopperV2.(com.google.mlkit:barcode-scanning@@16.2.0:1)
at com.google.mlkit.vision.barcode.bundled.internal.zza.zzc(com.google.mlkit:barcode-scanning@@16.2.0:1)
at com.google.android.gms.internal.mlkit_vision_barcode_bundled.zzaa.zza(com.google.mlkit:barcode-scanning@@16.2.0:8)
at com.google.android.gms.internal.mlkit_vision_barcode_bundled.zzb.onTransact(com.google.mlkit:barcode-scanning@@16.2.0:3)
at android.os.Binder.transact(Binder.java:607)
at com.google.android.gms.internal.mlkit_vision_barcode.zza.zzc(com.google.android.gms:play-services-mlkit-barcode-scanning@@16.2.0:2)
at com.google.android.gms.internal.mlkit_vision_barcode.zzmz.zze(com.google.android.gms:play-services-mlkit-barcode-scanning@@16.2.0:2)
at com.google.mlkit.vision.barcode.internal.zzm.zza(com.google.android.gms:play-services-mlkit-barcode-scanning@@16.2.0:3)
at com.google.mlkit.vision.barcode.internal.zzi.zzc(com.google.android.gms:play-services-mlkit-barcode-scanning@@16.2.0:3)
at com.google.mlkit.vision.barcode.internal.zzi.run(com.google.android.gms:play-services-mlkit-barcode-scanning@@16.2.0:1)
at com.google.mlkit.vision.common.internal.MobileVisionBase.zza(com.google.mlkit:vision-common@@16.5.0:2)
at com.google.mlkit.vision.common.internal.zzd.call(null:4)
at com.google.mlkit.common.sdkinternal.ModelResource.zza(com.google.mlkit:common@@17.2.0:8)
at com.google.mlkit.common.sdkinternal.zzm.run(null:10)
at com.google.mlkit.common.sdkinternal.zzp.run(com.google.mlkit:common@@17.2.0:2)
at com.google.mlkit.common.sdkinternal.MlKitThreadPool.zze(com.google.mlkit:common@@17.2.0:4)
at com.google.mlkit.common.sdkinternal.MlKitThreadPool.zzc(com.google.mlkit:common@@17.2.0:1)
at com.google.mlkit.common.sdkinternal.zzi.run(null:2)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1162)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:636)
at com.google.mlkit.common.sdkinternal.MlKitThreadPool.zzd(com.google.mlkit:common@@17.2.0:2)
at com.google.mlkit.common.sdkinternal.zzj.run(null:2)
at java.lang.Thread.run(Thread.java:764)
Xiaomi System - Android 8.1
https://stackoverflow.com/questions/63901069/google-ml-kit-couldnt-find-libbarhopper-v2-so
The text was updated successfully, but these errors were encountered: