在Android Play开发者控制台中恢复为较旧的APK

前端之家收集整理的这篇文章主要介绍了在Android Play开发者控制台中恢复为较旧的APK前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
参见英文答案 > Android APK file: Re-activate older APK file in Google Play Store4个
我已将多个版本的应用程序提交到Google Play,我注意到最新版本中存在一个错误.但是,所有以前的版本仍然出现并在APK部分标记为未发布.我正在尝试取消发布版本2.1并使用版本2.0.

以下是我采取的步骤:

>我去了APK部分
>我切换到高级模式
>然后在版本2.0上,我点击了Move to Prod
>然后在版本2.1上我点击了停用

然后我收到此错误消息:(版本7是2.1,版本6是2.0)

This configuration cannot be published for the following reason(s):
It is forbidden to downgrade devices which prevIoUsly matched version 7 
to version 6,which would occur when 
API levels in range 16+ and 
Screen layouts containing any of [small,normal,large,xlarge] 
and Features containing all of [android.hardware.screen.PORTRAIT,android.hardware.TOUCHSCREEN].

比较两个版本的APK时,配置完全相同:

-------------------------------------------------------
Details     | Version 2.0        | Version 2.1        |
-------------------------------------------------------
API levels  | 16+                | 16+                |
-------------------------------------------------------
Screen lay. | 4 screen (s/n/l/xl)| 4 screen (s/n/l/xl)|
-------------------------------------------------------
Features    | same for both      | same               |
-------------------------------------------------------

所以在这种情况下错误信息不是很有用.这是回归并激活旧APK版本的正确方法吗?如果是的话,这里有什么问题?

解决方法

该消息仅表示已发布的应用程序无法降级.有关配置的其他信息仅显示所有已配置的设备都将受到影响.

Android操作系统检查版本代码,一旦安装了版本代码为7的应用程序,将不允许任何版本代码小于8.您可以使用adb install命令尝试此操作.

Reference documentation

  • You cannot activate a new APK that has a version code lower than that of the APK it’s replacing. For example,say you have an active
    APK for screen sizes small – normal with version code 0400,then try
    to replace it with an APK for the same screen sizes with version code 0300. This raises an error,because it means users of the prevIoUs APK will not be able to update the application.

你有两种方法

>解决错误并重新发布新版本.>从先前版本获取代码并将其版本代码更改为8并重新发布.

猜你在找的Android相关文章