Closed msal4 closed 3 years ago
hey @illia-romanenko, do you have any suggestions on how to fix this issue, I've tried a lot of options and after a while I figured out that the cause of this issue is related to adding these packagingOptions
to app build.gradle
android {
//...
packagingOptions {
pickFirst 'lib/x86/libc++_shared.so'
pickFirst 'lib/arm64-v8a/libc++_shared.so'
pickFirst 'lib/x86_64/libc++_shared.so'
pickFirst 'lib/armeabi-v7a/libc++_shared.so'
}
//...
}
when I remove these lines the libvlcjni.so
is packaged but I get a duplication error regarding libc++_shared.so
so is there an option to add so that libvlcjni
is packaged as well or maybe a fix for the libc++
duplication error.
thanks
hey, sorry no ideas at the moment.
I am also getting this error, any news?
I have same issue. The example run well but if add to exit project, it build fail with a duplication error regarding libc++_shared.so .
Add these line can help to build
android { //... packagingOptions { pickFirst 'lib/x86/libc++_shared.so' pickFirst 'lib/arm64-v8a/libc++_shared.so' pickFirst 'lib/x86_64/libc++_shared.so' pickFirst 'lib/armeabi-v7a/libc++_shared.so' } //... }
but get crash when play
Can't load vlcjni library: java.lang.UnsatisfiedLinkError: dlopen failed: cannot locate symbol "_Unwind_Resume" referenced by "/data/app/fun.example-KPesI5LlHYVpZ_j4lblQpQ==/lib/arm64/libvlc.so"...
How to solve this issue! I am facing the same error!
Can't load vlcjni library: java.lang.UnsatisfiedLinkError: dlopen failed: cannot locate symbol "__sfp_handle_exceptions" referenced by "/data/app/~~z1Yjlcjr5hAFVXLrR9in1w==/com.example.video_player-hLLFwjOjD2OCxXm0PSrPXQ==/lib/arm64/libvlc.so"...
I'm facing the same issue, anyone solved it?
@solid-yuriiprykhodko Hello, what should we do? useProguard is depricated. So i put
isMinifyEnabled = true
, added jniLibs.pickFirsts.add("lib/**/libc++_shared.so")
because I'm using vlc with mapBox so there were no duplication, + i added
-keep class io.flutter.app.** { *; }
-keep class io.flutter.plugin.** { *; }
-keep class io.flutter.util.** { *; }
-keep class io.flutter.view.** { *; }
-keep class io.flutter.** { *; }
-keep class io.flutter.plugins.** { *; }
-keep class org.videolan.libvlc.** { *; }
inside of proguard-rules.pro file of each module. But next time i tried to open vlc player, app crashes with an error
E/VLC/LibVLC: Can't load vlcjni library: java.lang.UnsatisfiedLinkError: dlopen failed: cannot locate symbol "__sfp_handle_exceptions" referenced by "/data/app/~~KsBGSrfgrS0PfA2tOn_wKw==/com.safety.net.android.dev-4vaaakH5afLLY5nP-jyaow==/base.apk!/lib/arm64-v8a/libvlc.so"...
I am also getting this error, any news?
got any solutions?
Also started having this problem when I switched to an arm64 device. Maybe the issue is that the vlc libc++_shared.so
library is not being used when adding jniLibs.pickFirsts.add("lib/**/libc++_shared.so")
I thought proguard rules were meant to prevent this (although I may be wrong). If there was a way to specify which libc++_shared.so
to use it might fix it...
Same issue here
Same issue here
Same issue here
remake confict implement look this
I get this error on init then the app crashes:
Files
app/build.gradle (and yes, I'm using react native with flutter due to my niche use cases)
root/build.gradle
AndroidManifest.xml