【发布时间】:2022-01-05 06:06:06
【问题描述】:
我正在尝试向 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
运行提交时,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 submit 之前,我已经手动更新了构建。可能相关问题:在手动上传期间,它也不接受 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": {}
}
}
app.json
{
"expo": {
"version": "0.0.5",
"scheme": "myscheme",
"web": {
"favicon": "./assets/images/favicon.png"
},
"plugins": [
"sentry-expo"
],
"android": {
"versionCode": 2
}
}
}
【问题讨论】:
-
您可能希望将此发布到forums.expo.dev。此外,详细说明“不起作用”的含义通常很有用,例如:在“运行提交时,从 EAS 选择构建不起作用”中不清楚您在说什么。
-
这不是主要问题,所以我跳过了细节。但是我现在已经更新了。谢谢。
标签: android react-native google-api expo fastlane