Getting library "libjsc.so" not found after upgrading React Native to 0.60-RC2
What solved for me was change build.gradle updating packagingOptions
to:
packagingOptions {
pickFirst 'lib/x86/libc++_shared.so'
pickFirst 'lib/x86/libjsc.so'
pickFirst 'lib/x86_64/libjsc.so'
pickFirst 'lib/arm64-v8a/libjsc.so'
pickFirst 'lib/arm64-v8a/libc++_shared.so'
pickFirst 'lib/x86_64/libc++_shared.so'
pickFirst 'lib/armeabi-v7a/libc++_shared.so'
pickFirst 'lib/armeabi-v7a/libjsc.so'
}
I encountered a slight variation of this bug, where I had added a third buildType to my gradle config, 'releaseStaging'
The fix in this instance was to add the following line to dependencies in app/build.gradle
releaseStagingImplementation files(hermesPath + "hermes-release.aar")
Add below in your app/build.gradle
// On top of the file
def useIntlJsc = false
//inside dependencies
if (useIntlJsc) {
implementation 'org.webkit:android-jsc-intl:+'
} else {
implementation 'org.webkit:android-jsc:+'
}
I had this issue too. I needed to update the jscFlavor
variable inside the build.gradle file from this:
def jscFlavor = 'org.webkit:android-jsc:+'
To this:
def jscFlavor = 'org.webkit:android-jsc-intl:+'
Cheers.