bitrise-steplib / steps-google-play-deploy

MIT License
54 stars 38 forks source link

APK is not a valid ZIP archive, forbidden #86

Closed marcelskotnicki closed 3 years ago

marcelskotnicki commented 4 years ago

Hi, thanks for reading this issue. I've got a problem with uploading signed and ready .apk file to Google Play. There is an error:

Upload apks or app bundles Found .apk file: /bitrise/deploy/app-prod-release-bitrise-signed.apk Uploading /bitrise/deploy/app-prod-release-bitrise-signed.apk 1/1 Failed to upload APKs: failed to upload apk, error: googleapi: Error 403: APK is not a valid ZIP archive, forbidden

Never seen this one and can't find solution online. Hope you can help, thanks.

bitce commented 4 years ago

Hi @mskx42! Can you please include a build URL here that we could check out? Thanks!

marcelskotnicki commented 4 years ago

Hi @bitce. Thanks for the reply. Here's build URL https://app.bitrise.io/build/1fb9b9dfa5aff23e#?tab=log

marcelskotnicki commented 4 years ago

Hi @bitce. Did you manage to check out what is going on?

marcelskotnicki commented 4 years ago

Well, it seems that this issue has resolved itself (or there was some action from your side @bitce ?). According to this build our .apk was delivered to Google Play successfully.

bitce commented 4 years ago

Hi @mskx42!

Sorry for the delay. We did not complete any action that should have solved this, I believe there was some kind of outage with the Google Play API, since we were seeing an elevated number of seemingly unrelated but similar error messages.

marcelskotnicki commented 4 years ago

Sure, no problem. Thanks for help!

SaravanarajaGITHUB commented 4 years ago

Facing the same issue

build URL --> https://app.bitrise.io/build/b0b1aaa5b60b9dd5#?tab=log

Capture

marcelskotnicki commented 4 years ago

Hi @bitce! Unfortunately this issue happened again :(

megataps commented 3 years ago

I have update the sign apk step like this: - sign-apk@1: run_if: '{{getenv "BITRISEIO_ANDROID_KEYSTORE_URL" | ne ""}}' inputs: - use_apk_signer: 'true' - debuggable_permitted: 'false'

It worked for me. Hope this help.

github-actions[bot] commented 3 years ago

Hello there, I'm a bot. On behalf of the community I thank you for opening this issue.

To help our human contributors focus on the most relevant reports, I check up on old issues to see if they're still relevant. This issue has had no activity for 90 days, so I marked it as stale.

The community would appreciate if you could check if the issue still persists. If it isn't, please close it. If the issue persists, and you'd like to remove the stale label, you simply need to leave a comment. Your comment can be as simple as "still important to me".

If no comment left within 21 days, this issue will be closed.

github-actions[bot] commented 3 years ago

I'll close this issue as it doesn't seem to be relevant anymore. We believe an old issue probably has a bunch of context that's no longer relevant, therefore, if the problem still persists, please open a new issue.