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

前端 未结 4 898
清酒与你
清酒与你 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

    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'
        }
    

提交回复
热议问题