在Google Play上发布带有maxSdkVersion值的Apk进行过滤 [英] Publishing an Apk With maxSdkVersion Value For Filtering at Google Play

查看:141
本文介绍了在Google Play上发布带有maxSdkVersion值的Apk进行过滤的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Google Play上使用了以下属性的apk:

  android:versionCode =1000
android:versionName =1

< uses-sdk
android:minSdkVersion =7
android:targetSdkVersion =19/>

级别 8(2.2 FROYO) 7(2.1 ECLAIR_MR1)在这个apk中遇到了问题,因为在这些API级别上不支持的方法。无论如何,我知道问题的原因和解决方案。但我不想将更新推送给所有客户(9+)。所以我创建了一个包含以下属性的apk版本:

  android:versionCode =1001
android:versionName =1.1

< uses-sdk
android:minSdkVersion =7
android:targetSdkVersion =8
android:maxSdkVersion =8 />

我的apk版本只能在api级别7的设备上看到, 8.



但是,当我试图在Google Developer Console上发布它时,出现以下错误:

 无法发布此配置,原因如下:
从API级别7-8升级到9+级别的API级别的设备应该从版本1001降级版本1000,当
包含任何[small,normal,large,xlarge]和
OpenGL ES版本的范围为2.0+和
的屏幕布局包含[android。 hardware.LOCATION,android.hardware.location.GPS,android.hardware.location.NETWORK,android.hardware.TELEPHONY,android.hardware.TOUCHSCREEN,android.hardware.WIFI]。

我已经阅读了关于maxSdkVersion的文档(我知道不建议使用它)



在adobe论坛上也尝试过类似的错误解决方案,这对我没有任何帮助。 / p>

你有没有同样的情况?任何解决方案/解决方法? 我不能发布单一apk在我的当前apk(1000)之后被描述为版本1001。为了解决我的问题,我有两个选择:


  1. 我必须发布另一个apk版本代码1002,它是
    设计用于+9个设备。因为google说如果设备升级了(其api级别从8增加到9,设备必须获得我的apk的较低版本,并且它被禁止。)

  2. 我必须发布我的单一apk(1001)适用于所有api级别,不含
    maxSdkVersion。

这两种解决方案都是9+我不想要。



http://developer.android.com/google/play/publishing/multiple-apks.html#HowItWorks


...版本代码必须增加
与每个APK的API级别支持的相关性,以便用户在他们收到系统更新时获得
更新



I've an apk at Google Play with properties below:

android:versionCode="1000"
android:versionName="1"

<uses-sdk
    android:minSdkVersion="7"
    android:targetSdkVersion="19"/>

Devices with api level 8 (2.2 FROYO) and 7 (2.1 ECLAIR_MR1) had a problem wiht this apk because of an unsupported method at those api levels. Anyway, I know the reason of the problem and the solution for it. But I don't want to push update to all of my clients(9+). So I created a version of an apk with properties below:

android:versionCode="1001"
android:versionName="1.1"

<uses-sdk
    android:minSdkVersion="7"
    android:targetSdkVersion="8"
    android:maxSdkVersion="8"/>

This version of my apk was going to be seen by only the devices which are at api level 7 and 8.

But when I tried to publish it at Google Developer Console, I got error below:

This configuration cannot be published for the following reason(s):
It is forbidden that a device upgrading from API levels 7-8 to API levels in range 9+ should downgrade from version 1001 to version 1000, which would occur when 
Screen layouts containing any of [small, normal, large, xlarge] and 
OpenGL ES versions in range 2.0+ and 
Features containing all of [android.hardware.LOCATION, android.hardware.location.GPS, android.hardware.location.NETWORK, android.hardware.TELEPHONY, android.hardware.TOUCHSCREEN, android.hardware.WIFI].

I've already read documents about maxSdkVersion (I know that it is not suggested to be used)

Also tried similar error's solution at adobe forums which didn't help me.

Did you have the same situation? Any solutions/workaround for this?

Thanks in advance.

解决方案

I can not publish a "single" apk which is described as version 1001 after my current apk (1000). To solve my issue, I've 2 choices:

  1. I have to publish another apk with the version code 1002, which is designed for +9 devices. Because google says that if the device is upgraded(its api level increases from 8 to 9, device must get the lower version of my apk and it is forbidden.)
  2. I have to publish my single apk(1001) for all api levels without maxSdkVersion.

Both solutions will be an update to 9+ devices which I don't want.

http://developer.android.com/google/play/publishing/multiple-apks.html#HowItWorks

...the version codes must increase in correlation with the API level support for each APK, so that users get an update when they receive a system update.

这篇关于在Google Play上发布带有maxSdkVersion值的Apk进行过滤的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆