当使用Fastlane和Flutter运行这个后,是什么原因导致这个错误?
bundle exec fastlane beta
Google Api错误。Invalid request - Access Not Configured. Google Play开发者API以前没有在项目中使用过,或者它被禁用。 启用它通过访问 https:/console.developers.google.comapisapiandroidpublisher.googleapis.comoverview?project=xxxx。 然后重试。如果你最近启用了这个API,请等待几分钟,让这个动作传播到我们的系统,然后重试。
当服务账户被启用,并与Play Store账户链接的发布管理器,我读了不同的对话在github上,但我不能得到明确的答案,我试图增加我的APK的版本,因为我上传了一个,但没有运气。
这是我的代码在 Fastfile
:
update_fastlane
default_platform(:android)
platform :android do
desc "Runs all the tests"
lane :test do
gradle(task: "test")
end
desc "Deploy an beta new version to the Google Play"
lane :beta do
gradle(
task: 'assemble',
build_type: 'Release'
)
upload_to_play_store(track: 'beta',
version_code: 5,
aab: '../build/app/outputs/bundle/release/app-release.aab',
)
end
end
然后它还说,在某处,:
[11:16:18]: Couldn't find any new signed apk files...
但我提供了通往 aab
.
谁能快点给我解封啊
你正在创建一个apk与 task: "assemble"
,只是改变它为 task: "bundle"
.