Closed abdes-zakari closed 3 years ago
Your error is "More than one file was found with OS independent path 'lib/x86/libc++_shared.so'"
To fix this you have to write this code in android/app/build.gradle file
android {
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 is mentioned by @tanersener in the tips section to solve such an error.
after adding this rebuild your app and run 'react-native-run-android'.
@Abdullah1428 thanks
Open the project in Android Studio android and clean the project
Build -> Clean Project
Your error is "More than one file was found with OS independent path 'lib/x86/libc++_shared.so'"
To fix this you have to write this code in android/app/build.gradle file
android { 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 is mentioned by @tanersener in the tips section to solve such an error.
after adding this rebuild your app and run 'react-native-run-android'.
Sorry for stupid question
But can you be more specific where to add this code in android/app/build.gradle
. As I am still getting this error.
Under the android {
}
I am paste that code where android start
android {
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'
}
...Other existing code
}
Version:
I want use the "full-gpl" package so i edited the build.gradle
After running: react-native run-android i got this error
Error
How i can fix it ?