【发布时间】:2020-07-16 03:38:12
【问题描述】:
我正在为我的应用程序构建一个 apk,它是通过使用 expo 的 react native 构建的
我在终端中使用expo build:android 命令,之后我得到一个提示以供选择:
? Would you like to upload a keystore or have us generate one for you?
If you don't know what this means, let us handle it! :)
所以我选择了expo来处理它,我得到了以下步骤
Publishing to channel 'default'...
Building iOS bundle
Building Android bundle
Analyzing assets
Uploading assets
Uploading \assets\alert.mp3
Uploading \assets\images\splash.png
Uploading \assets\images\icon.png
然后我得到了以下错误
read ECONNRESET
Set EXPO_DEBUG=true in your env to view the stack trace.
我还更新了 expo-cli 到最新版本! 如果有帮助,这是我的 app.json
{
"expo": {
"name": "app name",
"slug": "app-name",
"platforms": [
"android"
],
"version": "1.0.0",
"orientation": "portrait",
"icon": "./assets/images/icon.png",
"scheme": "myapp",
"splash": {
"image": "./assets/images/splash.png",
"resizeMode": "contain",
"backgroundColor": "#ffffff"
},
"updates": {
"fallbackToCacheTimeout": 0
},
"android": {
"package": "com.el3ameed.appname",
"versionCode": 1,
"adaptiveIcon": {
"foregroundImage": "./assets/images/icon.png",
"backgroundColor": "#171717"
}
},
"assetBundlePatterns": [
"**/*"
],
"ios": {
"bundleIdentifier": "com.el3ameed.appname",
"buildNumber": "1.0.0"
},
"description": ""
}
}
【问题讨论】:
标签: android react-native build expo