Google Play商店未在我更新的应用程序中降级目标SDK版本

Google Play商店未在我更新的应用程序中降级目标SDK版本

问题描述:

我在Google Play商店中拥有一个应用程序,其目标SDK版本为23.现在,我已更新了该应用程序,由于某种原因,我将目标SDK版本设置为20,并且Google Play商店不允许我降级目标SDK版本

I have an application on the Google Play store with target SDK version 23. Now I have updated my application and for some reason I set my target SDK version to 20 and Google Play Store does not allow me to downgrade the target SDK version.

我该怎么做,以便Google Play商店允许我的应用程序使用降级的目标SDK版本.实际错误如下:

What can I do so that the Google Play Store allows my application with the downgraded target SDK version. The actual error follows:

禁止降级以前的设备对使用旧版权限(目标SDK 22及以下)的APK使用了M权限(目标SDK 23及以上).在从版本42(目标SDK 23)到版本43(目标SDK 20)的更改中会发生这种情况.

TLDR:您对此无能为力.

您有两个(一个)选项:

  • 再次构建您的应用,并继续使用相同的SDK版本(在您的情况下为android M(SDK 23);
  • 发布具有新应用程序ID的全新应用程序.在最坏的情况下,这是一个选择,但我无法想象您会愿意这样做;

您可能想知道为什么不能将目标SDK版本从23+降级到更低的版本.Google可能不允许您执行此操作,因为使用您应用的先前版本(目标SDK为23+)的用户可能不允许某些特定权限,而他们在应用更新后会被迫允许这些特定权限(目标SDK< 23)).我个人认为,从用户体验的角度来看,首先允许动态权限,然后又撤回它们并强迫用户允许所有权限是很奇怪的.

You might wonder why you can't downgrade the target SDK version from 23+ to something lower. Google probably won't allow you to do this because users with the previous version (target SDK 23+) of your app might have disallowed some specific permissions which they are forced to allow as soon as they update the app (target SDK < 23). I personally think, seen from a user experience perspective, its weird to allow dynamic permissions at first but then retract them and force users to allow all permissions.