Getting “java.lang.UnsatisfiedLinkError: couldn't find DSO to load: libhermes.so” error

前端 未结 4 1136
旧时难觅i
旧时难觅i 2021-01-17 18:53

I\'m in the process of migrating a React Native project from react-native version 0.58.5 to 0.60.4.

For the Android part I\'ve done all the changes mentioned here

4条回答
  •  长情又很酷
    2021-01-17 19:13

    I solved this problem by a tiny change after doing this steps in this article

    https://github.com/facebook/react-native/issues/25415

    Then make sure to add this jsc-android block to your android/build.gradle:

    allprojects {
        repositories {
            mavenLocal()
            maven {
                // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
                url("$rootDir/../node_modules/react-native/android")
            }
    
            //THIS ONE
            maven {
                // Android JSC is installed from npm
                url("$rootDir/../node_modules/jsc-android/dist")
            }
    
            google()
            jcenter()
        }
    }
    

提交回复
热议问题