日志:
Time Tag Message
15:56:52.131 SoLoader couldn't find DSO to load: libjscexecutor.so
15:56:54.275 SoLoader couldn't find DSO to load: libhermes-executor-release.so
android\app\build.gradle:
project.ext.react = [
entryFile: "index.js",
enableHermes: true,
]
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")
}
maven {
// Android JSC is installed from npm
url("$rootDir/../node_modules/jsc-android/dist")
}
google()
jcenter()
maven { url 'https://jitpack.io' }
}
}
这个错误的原因是什么?
https://reactnative.dev/docs/hermes
反应原生信息:
- 操作系统:Windows 10
- CPU:(8)x64
- 节点:12.16.1
- 纱线:1.22.4
- npm:6.13.4
- 守望者:20200604.181126.0
- Android Studio:版本 3.6.0.0
- 反应:16.9.0 => 16.9.0
- 反应原生:0.61.5 => 0.61.5
- 反应原生 cli:2.0.1
尝试添加:
android\app\build.gradle:
configurations.all {
resolutionStrategy {
force "com.facebook.soloader:soloader:0.8.2"
}
}
错误日志:
Time Tag Message
16:14:51.168 SoLoader couldn't find DSO to load: libjscexecutor.so result: 0
16:14:57.928 SoLoader couldn't find DSO to load: libhermes-executor-release.so result: 0