以下是从我的环境中获得的一些信息:
Expo CLI 3.0.6 environment info:
System:
OS: macOS High Sierra 10.13.6
Shell: 3.2.57 - /bin/bash
Binaries:
Node: 8.16.0 - /usr/local/opt/node@8/bin/node
npm: 6.4.1 - /usr/local/opt/node@8/bin/npm
Watchman: 4.9.0 - /usr/local/bin/watchman
IDEs:
Android Studio: 3.4 AI-183.6156.11.34.5692245
Xcode: 10.1/10B61 - /usr/bin/xcodebuild
npmPackages:
expo: ^31.0.4 => 31.0.6
react: 16.5.0 => 16.5.0
react-native: => 0.57.1
react-navigation: ^2.18.2 => 2.18.3
npmGlobalPackages:
expo-cli: 3.0.6
my device:
android 7
我一直在使用expo-cli生成并导出到apk文件,但无法将其安装到我的设备上。
There was a problem parsing the package.
此处的配置文件:
app.json
{
"react-native": "0.59.8",
"expo": {
"name": "BVBDReport",
"icon":"./assets/logo.png",
"version": "0.1.0",
"slug": "BVBD",
"sdkVersion": "34.0.0",
"platforms": [
"ios",
"android"
],
package.json
{
"name": "report",
"version": "0.1.0",
"private": true,
"devDependencies": {
"jest-expo": "^34.0.0",
"react-test-renderer": "16.3.1",
"redux-logger": "^3.0.6",
"remote-redux-devtools": "^0.5.13",
"remotedev-rn-debugger": "^0.8.3"
},
"main": "node_modules/expo/AppEntry.js",
"scripts": {
"start": "expo start",
"eject": "expo eject",
"android": "expo start --android",
"ios": "expo start --ios",
"test": "jest"
},
"jest": {
"preset": "jest-expo"
},
"dependencies": {
"axios": "^0.18.1",
"expo": "^34.0.0",
"moment": "^2.22.2",
"native-base": "^2.13.4",
"npm": "^6.3.0",
"react": "16.3.1",
"react-native": "0.59.8",
"react-native-awesome-alerts": "^1.0.8",
"react-native-datepicker": "^1.7.2",
"react-native-flags": "^1.0.0",
"react-native-modal-datetime-picker": "^6.0.0",
"react-native-orientation-loading-overlay": "^0.1.4",
"react-native-picker-select": "^4.2.0",
"react-native-snap-carousel": "^3.7.2",
"react-native-table-component": "^1.2.0",
"react-native-vector-icons": "^5.0.0",
"react-navigation": "^2.11.2",
"react-navigation-redux-helpers": "^2.0.5",
"react-redux": "^5.0.7",
"redux": "^4.0.0",
"redux-promise": "^0.6.0",
"redux-saga": "^0.16.0"
}
}
当运行导出apk时,我使用了来自expo-cli的梯形失真处理。
感谢您对我们的帮助! ->