Skip to content
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

Failed to upgrade to 'com.yyl.vlc:vlc-android-sdk:3.3.0' #76

Open
davinctor opened this issue Nov 20, 2020 · 1 comment
Open

Failed to upgrade to 'com.yyl.vlc:vlc-android-sdk:3.3.0' #76

davinctor opened this issue Nov 20, 2020 · 1 comment

Comments

@davinctor
Copy link

davinctor commented Nov 20, 2020

I have found that the stream is freezing after some time for different cameras in the project.
I'm using react-native-vlcplayer package in the RN app and inside it uses this library my 3.0.10version.

After upgrading from com.yyl.vlc:vlc-android-sdk:3.0.10 to com.yyl.vlc:vlc-android-sdk:3.3.0 it video freezing issue was fixed in the test project but when I'm trying to migrate it to another project I'm receiving this kind of error:

More than one file was found with OS independent path 'lib/x86/libc++_shared.so'

I have found thread in react-native-ffmpeg library with a similar issue. The library maintainer said that it's because of c++ core library was changed in ReactNative core.

libgnustl_shared.so is replaced with libc++_shared.so in react-native 0.59. react-native-ffmpeg already includes libc++_shared.so so using react-native 0.59 causes the More than one file was found with OS independent path 'lib/x86/libc++_shared.so' error.

And have proposed to use the next solution inside your project app/build.gradle file:

packagingOptions {
    pickFirst 'lib/x86/libc++_shared.so'
    pickFirst 'lib/x86_64/libc++_shared.so'
    pickFirst 'lib/armeabi-v7a/libc++_shared.so'
    pickFirst 'lib/arm64-v8a/libc++_shared.so'
}

It started to compile and run but when I'm going to open the stream with VLCPlayer component app crashes with the next error in logs.

E/VLC/LibVLC: Can't load vlcjni library: java.lang.UnsatisfiedLinkError: dlopen failed: cannot locate symbol "__emutls_get_address" referenced by "/data/app/com.omo.systems-2/lib/arm/libvlc.so"...

Maybe vlcjni trying to use another standard c++ library instead of provided by react-native library.

My RN version in 0.61.5.

I also reported this issue in vlc-sdk-lib.

Thanks in advance!

@davinctor
Copy link
Author

davinctor commented Nov 20, 2020

@tanersener I know it's definitely not your package but maybe you have some ideas on how to work around it. Thank you in advance!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant