Open AntonMyr opened 5 years ago
I also tried replacing playURI with queueURI()
and skipToNext()
and got the same error.
What device is this running on?
It's running on Huawei p20 pro
Is that 64 bit?
Yes it is.
@AntonMyr did u find any solution? If u find could share it ?
@IbrahimCanKALYA No, unfortunately not. I'm not working on this project anymore.
@AntonMyr thanks for reply.
If you are building 64 bit apk with new feature of react-native & requirement of play store.
you should remove packagingOptions from build.gradle
packagingOptions {
pickFirst 'lib/armeabi-v7a/libgnustl_shared.so'
pickFirst 'lib/x86/libgnustl_shared.so'
exclude 'lib/arm64-v8a/libgnustl_shared.so'
exclude 'lib/x86_64/libgnustl_shared.so'
}
removing packaging options solved problem
If you are building 64 bit apk with new feature of react-native & requirement of play store.
you should remove packagingOptions from build.gradle
packagingOptions { pickFirst 'lib/armeabi-v7a/libgnustl_shared.so' pickFirst 'lib/x86/libgnustl_shared.so' exclude 'lib/arm64-v8a/libgnustl_shared.so' exclude 'lib/x86_64/libgnustl_shared.so' }
removing packaging options solved problem
I can confirm after removing packagingOptions below, the playURI method works again.
Can also confirm removing packagingOptions in /android/app/build.gradle
solved the problem.
For others, this also fixed a problem I was having when logging in (with facebook) the app would crash and require reopening. After reopening, my app would initialize with my credentials tho.
Thanks and hope this helps!
React-native version: 0.59.9 Android version: 9
I tried the example app and everything went well until I came to the
Spotify.playURI
part because then I got this error: [Error message:
dlopen failed: library "/vendor/lib64/libgnustl_shared.so" needed or dlopened by "/system/lib64/libnativeloader.so" is not accessible for the namespace "classloader-namespace"