Android APK 文件:在 Google Play 商店中重新激活旧的 APK 文件
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/10383321/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Android APK file: Re-activate older APK file in Google Play Store
提问by DextrousDave
I have uploaded two APK files into the Google Play store. One is a newer version and one is an older version. The newer version is the active one since it has a higher versionName and Code. Now I found some bugs in the newer version and I want to delete it from the Play Store and activate the older version. Google Play won't let me deactivate the newer one and activate the older one again, since it has a lower versionName and code. The problem is that I'm am not the developer and did not build the app. The developer is in another country and it is difficult to get hold of them.
我已将两个 APK 文件上传到 Google Play 商店。一个是新版本,一个是旧版本。较新的版本是活动版本,因为它具有更高的 versionName 和 Code。现在我在新版本中发现了一些错误,我想从 Play 商店中删除它并激活旧版本。Google Play 不会让我停用较新的并再次激活较旧的,因为它的版本名称和代码较低。问题是我不是开发人员,也没有构建应用程序。开发商在另一个国家,很难找到他们。
What can I do to reactivate the older version again? I know one solution would be to change the versionName and Code. I only have the apk file, can I change those details in Eclipse with only the apk file and very little experience in eclipse or developing android apps?
我该怎么做才能重新激活旧版本?我知道一种解决方案是更改 versionName 和 Code。我只有 apk 文件,我可以在 Eclipse 中仅使用 apk 文件更改这些详细信息,并且在 eclipse 或开发 android 应用程序方面的经验很少吗?
Thank You
谢谢你
采纳答案by Booger
You will not be able to change the APK file without having the signing certificate.
如果没有签名证书,您将无法更改 APK 文件。
You should be able to revert to an older version, assuming you didn't change the level of API support.
假设您没有更改 API 支持的级别,您应该能够恢复到旧版本。
回答by Pup
You can't rebuild a new version of an apk from the apk itself.
Have the app developer do the following:
您无法从 apk 本身重建新版本的 apk。
让应用程序开发人员执行以下操作:
- Rebuild project in its previous state with higherversion number (mustbe higher than all previously submitted versions)
- Resubmit
- 以更高的版本号重建项目之前的状态(必须高于之前提交的所有版本)
- 重新提交
From Google's Android "Developer Console" page:
来自 Google 的Android“开发者控制台”页面:
Note that rollbacks aren't supporteddue 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.
请注意,由于 Android 平台的应用版本控制要求,不支持回滚。如果您需要回滚,请考虑使用新版本号启动以前的 APK。但是,这种做法只能作为最后的手段,因为用户将无法访问新功能,并且您的旧应用程序可能无法与您的服务器更改或数据格式向前兼容,因此请务必对您的应用程序进行 alpha 和 beta 测试。更新。
回答by usajnf
A good strategy is, when creating a build, modify the manifest to build say a version 2.0 = 39 AND again 2.05 = 45 and generate these two apks which will obviously do the same thing.
一个好的策略是,在创建构建时,修改清单以构建版本 2.0 = 39 和 2.05 = 45 并生成这两个显然会做同样事情的 apk。
Later, when build 2.01 = 40 is in production and you find an error, you can jump back to the old version by uploading the 2.05 = 45 you created earlier.
稍后,当 build 2.01 = 40 在生产中并且您发现错误时,您可以通过上传您之前创建的 2.05 = 45 来跳回旧版本。
You have 5 opportunities to back track while releasing 40, 41, 42, 43 and 44 to go back to earlier functionality!
您有 5 次机会回溯,同时发布 40、41、42、43 和 44 以返回早期功能!
Do this for each build and you can always go back to an earlier version which has been pre compiled and built but with a higher version number than currently in production.
对每个构建执行此操作,您始终可以返回到已预编译和构建但版本号高于当前生产版本的早期版本。
回答by Deepak
Presumably, go to the Dev console, select the APK tab, hit the "Advanced Mode" option, deactivate the current version and hit "Reactivate" for the version you want.
据推测,转到开发控制台,选择 APK 选项卡,点击“高级模式”选项,停用当前版本,然后点击所需版本的“重新激活”。