在Google Play Console中上传apk会引发错误,我不明白

时间:2017-02-03 10:37:25

标签: android google-play apk publish

将新版本上传到Google Play控制台时,我收到以下消息。

由于以下原因,无法发布此配置:

It is forbidden that a device upgrading from API levels in range 12-23 to API levels in range 24+ should downgrade from version 16 to version 15, which would occur when
Screen layouts containing any of [normal, large, xlarge] and
Features containing all of [android.hardware.FAKETOUCH].

Some devices are eligible to run multiple APKs. In such a scenario, the device will receive the APK with the higher version code.

OLD VERSION 15。我在AndroidManifest(Eclipse)中针对第15版的配置是:

  • 的minSdkVersion =" 12"
  • targetSdkVersion =" 22"
  • maxSdkVersion =" 23"
  • android.permission.VIBRATE
  • com.android.vending.CHECK_LICENSE
  • android.permission.INTERNET对
  • android.permission.ACCESS_NETWORK_STATE
  • android.permission.WRITE_EXTERNAL_STORAGE
  • android.permission.READ_EXTERNAL_STORAGE
  • 编译版本API19(来自eclipse中的build)

我已从Eclipse迁移到AndroidStudio 我的16版新配置现在是:

AndroidStudio中的新版本16:

  • compileSdkVersion 25
  • minSdkVersion 12
  • targetSdkVersion 22
  • maxSdkVersion 23
  • android.permission.VIBRATE
  • com.android.vending.CHECK_LICENSE
  • android.permission.INTERNET对
  • android.permission.ACCESS_NETWORK_STATE
  • android.permission.WRITE_EXTERNAL_STORAGE
  • android.permission.READ_EXTERNAL_STORAGE

有人可以帮帮我吗?

1 个答案:

答案 0 :(得分:0)

请检查您上次发布的代码库targetSdkVersion并与当前代码库targetSdkVersion版本进行比较并保持相同。

当您最后发布的apk没有被任何人更新并且您尝试更改targetSdkVersion +时,就会发生这种情况。