将以React Native编写的应用程序导出到工作的apk文件时遇到问题。
我使用gradlew assembleDebug
进行导出,命令本身可以运行,并且apk是在文件夹android \ app \ build \ outputs \ apk \ debug
中创建的,但是在手机/仿真器上安装后,屏幕截图中出现了错误
在纱线启动(博览会)中启动的应用程序正常运行
我的包裹的版本
"dependencies": {
"@react-native-community/netinfo": "5.0.0",
"axios": "^0.19.2",
"expo": "~37.0.3",
"react": "16.8.3",
"react-devtools": "3.6.3",
"react-dom": "~16.9.0",
"react-native": "0.59.10",
"react-native-gesture-handler": "~1.3.0",
"react-native-gradient-buttons": "^2.0.1",
"react-native-netinfo": "^1.0.0",
"react-native-reanimated": "~1.4.0",
"react-native-screens": "~2.2.0",
"react-native-swipe-gestures": "^1.0.5",
"react-native-unimodules": "0.6.0",
"react-native-web": "~0.11.7",
"react-navigation": "^4.0.10",
"react-navigation-drawer": "^2.3.1",
"react-navigation-stack": "^1.10.3",
"react-scripts": "2.1.8"
},
"devDependencies": {
"@babel/core": "^7.8.6",
"babel-jest": "24.9.0",
"babel-preset-expo": "~8.1.0",
"jest": "24.9.0",
"jetifier": "^1.6.4",
"metro-react-native-babel-preset": "0.56.0",
"react-test-renderer": "16.9.0"
},
Java jdk-14.0.1
摇篮4.10.1