Dyn*_*yes 5 android google-api react-native fastlane expo
我正在尝试向 Google Play 内部测试提交构建,但失败并出现以下错误:
Google Api Error: Invalid request - APKs are not allowed for this application
我正在运行以下命令:
eas build --profile development --platform android # works successfully
eas submit -p android
Run Code Online (Sandbox Code Playgroud)
运行时,提交Select a build from EAS不起作用(返回Couldn't find any Android builds for this project on EAS servers. It looks like you haven't run 'eas build' yet.),因此我从构建命令提供构建 ID。我已经设置buildType了app-bundle,但它仍然会返回错误。在提交日志中,我注意到:
skip_upload_apk | false
我可以将其更改为吗true?这会有帮助吗?我在运行 eas commit 之前手动更新了构建。可能相关的问题:在手动上传期间,它也不接受 APK 文件,因此我必须上传 AAB。
eas.json
{
"cli": {
"version": ">= 0.37.0"
},
"build": {
"development": {
"releaseChannel": "default",
"developmentClient": true,
"distribution": "internal",
"android": {
"buildType": "app-bundle"
},
"env": {
... // my env configs
}
},
"preview": {
"distribution": "internal"
},
"production": {}
},
"submit": {
"production": {}
}
}
Run Code Online (Sandbox Code Playgroud)
应用程序.json
{
"expo": {
"version": "0.0.5",
"scheme": "myscheme",
"web": {
"favicon": "./assets/images/favicon.png"
},
"plugins": [
"sentry-expo"
],
"android": {
"versionCode": 2
}
}
}
Run Code Online (Sandbox Code Playgroud)
截至 2021 年 8 月,Play 商店仅允许新应用上传 AAB 文件。旧应用程序暂时允许 apk。如果没有与 Google 达成具体协议(祝你好运),如果您有新应用程序,则需要上传 aab。
| 归档时间: |
|
| 查看次数: |
3521 次 |
| 最近记录: |