小编NoE*_*ape的帖子

尚未正确配置Gerrit googleplay发布商插件凭据

我将gerrit与Google Play Android Publisher插件一起使用,就像它在插件页面上的插件教程中描述的那样..apk已签名,如果我通过google play gui上传,则上传效果很好.

当我尝试使用gerrit上传它时,我得到了错误.记录如下:

Upload failed: The Google Service Account credential 'GooglePlayAPICredentials' has not been configured correctly.
Update the credential, ensuring that the required data have been entered, then try again
- No changes have been applied to the Google Play account
Build step 'Upload Android APK to Google Play' marked build as failure
Finished: FAILURE
Run Code Online (Sandbox Code Playgroud)

对于谷歌播放凭证我使用p12键与电子邮件看起来像

serviceaccountforgerrit@api-64****-*****8.iam.gserviceaccount.com 
Run Code Online (Sandbox Code Playgroud)

以及在页面上生成密钥时获得的密钥文件,如下所示:

https://console.developers.google.com/permissions/serviceaccounts?project=api-64****-*****8
Run Code Online (Sandbox Code Playgroud)

我已经创建了一个新的服务帐户,其中选中了"提供新的私钥"复选框,并选中了P12单选按钮.我还允许在google play开发者控制台api设置中访问此密钥

https://play.google.com/apps/publish/?dev_acc=*******#ApiAccessPlace
Run Code Online (Sandbox Code Playgroud)

服务帐户可以获得所有权限.可能是什么问题呢?

android-build gerrit google-play

6
推荐指数
1
解决办法
1369
查看次数

标签 统计

android-build ×1

gerrit ×1

google-play ×1