Nimr Sawafta
Nimr Sawafta

Reputation: 647

CodeMagic Error, can't publish to google store

It's my first time linking with codemagic, and I'm trying to link my GitHub to the store, then I have received this error,

Publishing failed :| Google Play failed to upload artefacts. The caller does not have permission: { "error": { "code": 403, "message": "The caller does not have permission", "status": "PERMISSION_DENIED" } }

Upvotes: 8

Views: 6017

Answers (5)

Samet ÖZTOPRAK
Samet ÖZTOPRAK

Reputation: 3374

You need to add the gcloud craeated account to Google Developer Console.

enter image description here

Upvotes: 0

Michael Dausmann
Michael Dausmann

Reputation: 4540

For me, I hadn't properly 'invited' the service account into my google play console (Google Play Console -> Setup -> Users and Permissions) my users list now shows my personal user + the google cloud service account user.

Upvotes: 1

shushper
shushper

Reputation: 1089

In my case I've forgotten to invite service account as user in Google Play Console.

Upvotes: 2

Oren Agiv
Oren Agiv

Reputation: 151

Based on the CodeMagic documentation:

https://docs.codemagic.io/flutter-publishing/publishing-to-google-play/

It seems that the first time required to upload the AAB manually to the Google Play Store.

The very first version of the app must be added to Google Play manually. You can download the app_release.aab from the build artifacts. In addition, each uploaded binary must have a different version; see how to automatically increment build version on Codemagic.

Upvotes: 2

Arnold Veltmann
Arnold Veltmann

Reputation: 786

I think the permission for the service account to access your application is not properly set up.

I would pay very close attention starting from the 8th point in this tutorial: https://docs.codemagic.io/knowledge-base/google-play-api/

However, I also think that sometimes Google takes some time to get it going, in any case, I would retry creating the service account and paying very close attention to all the details - make sure the service account has access to the right application (also check your bundle id in your local settings etc).

Upvotes: 9

Related Questions