仅在 Firebase 测试实验室 (Robo) 上测试我的本机应用程序时,我才在启动时遇到此错误
java.lang.UnsatisfiedLinkError: couldn't find DSO to load: libhermes.so
Run Code Online (Sandbox Code Playgroud)
在具有不同 API 的多个设备上进行了测试,它仅适用于 API 21 和 22。奇怪的是,该应用程序通过了 Play 商店预发布报告中的所有测试。
其实最让人惊讶的是我用的不是hermes而是JSC。该错误仅在我上传 aab (gradlew bundleRelease) 时出现。当我上传通用 apk (gradlew assembleRelease) 时,一切顺利。
这是我的 package.json
{
"name": "",
"version": "0.0.1",
"private": true,
"scripts": {
"start": "react-native start",
"test": "jest",
"lint": "eslint ."
},
"dependencies": {
"@react-native-community/netinfo": "^4.1.4",
"@redux-offline/redux-offline": "^2.5.2-native.0",
"buffer": "^5.4.2",
"hermes-engine": "^0.2.1",
"jsc-android": "^241213.1.0",
"prop-types": "^15.7.2",
"react": "16.8.6",
"react-native": "0.60.4",
"react-native-animatable": "^1.3.2",
"react-native-bootsplash": "^0.1.1",
"react-native-device-info": "^3.0.1",
"react-native-elements": "^1.1.0",
"react-native-extended-stylesheet": "^0.12.0",
"react-native-firebase": "^5.5.6", …Run Code Online (Sandbox Code Playgroud)