Gil*_*les 5 android react-native firebase-test-lab react-native-hermes
仅在 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",
"react-native-fs": "^2.14.1",
"react-native-navigation": "^3.1.2",
"react-native-offline": "^4.3.0",
"react-native-render-html": "^4.1.2",
"react-native-smooth-pincode-input": "^1.0.7",
"react-native-svg": "^9.9.3",
"react-native-svg-charts": "^5.3.0",
"react-native-timer": "^1.3.6",
"react-native-uuid": "^1.4.9",
"react-native-vector-icons": "^6.6.0",
"react-redux": "^7.1.0",
"redux": "^4.0.4",
"redux-logger": "^3.0.6",
"redux-persist": "^5.10.0",
"redux-saga": "^1.0.5"
},
"devDependencies": {
"@babel/core": "7.5.5",
"@babel/runtime": "7.5.5",
"@react-native-community/eslint-config": "0.0.3",
"babel-jest": "24.8.0",
"eslint": "6.1.0",
"jest": "24.8.0",
"metro-react-native-babel-preset": "0.54.1",
"react-test-renderer": "16.8.6",
"redux-devtools-extension": "^2.13.8"
},
"jest": {
"preset": "react-native"
}
}
Run Code Online (Sandbox Code Playgroud)
谢谢你的帮助。
| 归档时间: |
|
| 查看次数: |
3374 次 |
| 最近记录: |