Getting library “libjsc.so” not found after upgrading React Native to 0.60-RC2

前端 未结 4 822
清酒与你
清酒与你 2021-02-13 11:43

I have updated React Native to 0.60-RC2, migrated to AndroidX using the Android Studio refractor and used the jetifier mentioned here: https://github.com/react-native-community/

相关标签:
4条回答
  • 2021-02-13 12:20

    In my case, This error was related with react-native-screen and adding following following two lines to dependencies section in android/app/build.gradle fixed the issue for me

    implementation 'androidx.appcompat:appcompat:1.1.0-rc01'
    implementation 'androidx.swiperefreshlayout:swiperefreshlayout:1.1.0-alpha02'
    

    Source:Check out this Github answer

    0 讨论(0)
  • 2021-02-13 12:20

    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'
        }
    
    0 讨论(0)
  • 2021-02-13 12:37

    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")

    0 讨论(0)
  • 2021-02-13 12:38

    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:+'
        }
    
    0 讨论(0)
提交回复
热议问题