问题
i'm desperate. I published the wrong update for an app on the play store by the new Play Developer Console.
No i need to rollback my update, simply REMOVING it and re-publish the previous.
I cannot understand 2 things:
- how remove it from the apps versions menu
- re-publish the previous one
Please help me! Thanks in advance
回答1:
In previous versions of Google Developer Console this could be possible unpublising the last .apk and enable to production your desired version
but now it can´t be possible.
Note that rollbacks aren’t supported due to the app versioning requirements of the Android platform. If you need to rollback, consider launching a previous APK with a new version number. However, this practice should be used only as a last resort, as users will lose access to new features and your old app may not be forward-compatible with your server changes or data formats, so be sure to run alpha and beta tests of your updates.
You can see the previous releases but you can´t enable again:
You need to create and publish a new release with a consecutive versionCode
.
回答2:
Just build old app version with new versionCode
and old versionName
and publish it
回答3:
Reviving this but for those that are looking for something similar but for Android App Bundles.
As it's not as clear cut as when doing it for .apk.
For .aab's you need to:
- unpack the aab (its just a zip file)
- decode the AndroidManifest which is a binary proto message with protoc
- to decode you will need the .proto file found in the aapt2 tool
- alter the version code/version name of the decoded android manifest
- encode it again with protoc using the .proto files used in step 2
- pack the aab with zip, but be careful not to zip directories and to remove the path prefix that you might add unwillingly
- sign the zipped file with your store credentials, using jarsigner
- zipalign the signed zipped file
- rename the zipped, aligned and signed to the final .aab file
You can find these same steps in the following gist, with some of the work prepared before hand.
https://gist.github.com/Farious/e841ef85a8f4280e4f248ba8037ea2c0
I tried to avoid hardcoding anything and to bulletproof it, but it might not be yet.
来源:https://stackoverflow.com/questions/48191631/google-play-console-how-remove-an-update-of-published-application