【问题标题】:Incompatible Android app in PlayStorePlayStore 中的 Android 应用程序不兼容
【发布时间】:2014-05-30 04:33:49
【问题描述】:

我的应用是“普通”应用,不需要任何特殊的屏幕尺寸或密度。只是带有活动的常规活动及其带有基本视图的布局。不是任何绘图或特殊图形。

出于某种原因,我不记得了(我真的很遗憾)我将下一个 compatible-screens 代码添加到了我的 Manifest。从那时起,我发现某些设备(我无法指定哪些设备)不再与我的应用程序兼容。 PlayStore 不会让他们更新(好吧,实际上 PlayStore 不会在这些应用程序上显示我的应用程序,如果用户手动查找它,那么它会说它不兼容)。 我无法删除代码并再次上传我的应用,因为 PlayStore 不允许我删除 compatible-screens 条目。

所以,问题是: 这段代码对吗?我是否必须添加更多可能性以适应每个屏幕(包括平板电脑)?

最后一位投诉的用户使用的是三星 Galaxy Star GT-S5282

这是代码:

<compatible-screens>

    <screen android:screenSize="small" android:screenDensity="ldpi" /> 
    <screen android:screenSize="small" android:screenDensity="mdpi" /> 
    <screen android:screenSize="small" android:screenDensity="hdpi" /> 
    <screen android:screenSize="small" android:screenDensity="xhdpi"/>
    <screen android:screenSize="small" android:screenDensity="480"/> #xxhdpi HTC One, S4...

    <!--all normal size screens -->
    <screen android:screenSize="normal" android:screenDensity="ldpi" />
    <screen android:screenSize="normal" android:screenDensity="mdpi" />
    <screen android:screenSize="normal" android:screenDensity="hdpi" />
    <screen android:screenSize="normal" android:screenDensity="xhdpi" />
    <screen android:screenSize="normal" android:screenDensity="480" /> #xxhdpi HTC One, S4...

    <!-- all large size screens -->
    <screen android:screenSize="large" android:screenDensity="ldpi" />
    <screen android:screenSize="large" android:screenDensity="mdpi" />
    <screen android:screenSize="large" android:screenDensity="hdpi" />
    <screen android:screenSize="large" android:screenDensity="xhdpi" />
    <screen android:screenSize="large" android:screenDensity="480" /> #xxhdpi HTC One, S4...

    <!-- all xlarge size screens -->
    <screen android:screenSize="xlarge" android:screenDensity="ldpi" />
    <screen android:screenSize="xlarge" android:screenDensity="mdpi" />
    <screen android:screenSize="xlarge" android:screenDensity="hdpi" />
    <screen android:screenSize="xlarge" android:screenDensity="xhdpi" />
    <screen android:screenSize="xlarge" android:screenDensity="480" /> #xxhdpi HTC One, S4...

    <!-- Special case for Nexus 7 -->
    <screen android:screenSize="large" android:screenDensity="213" />
</compatible-screens>

【问题讨论】:

  • “我无法删除代码并再次上传我的应用程序,因为 PlayStore 不允许我删除 compatible-screens 条目。”:我不确定我是否理解那句话。只要您的包名称相同并且使用相同的密钥签名,您就应该能够以您选择的任何方式修改您的应用程序。
  • 发布您的 android manifest.xml 以获得更多详细信息。

标签: android screen


【解决方案1】:

尝试增加版本号和内部版本号

【讨论】:

  • 你也可以给出你得到的确切信息
  • 是的,增加 versionCode 整数也是我的猜测。 Google Play 可能认为他试图以相同的版本号发布两个不同的 apk(因此要求他指定与第一个 apk 的屏幕差异,否则上传具有相同功能的单独 apk 没有任何意义)。
【解决方案2】:

您的应用必须需要使用required="false" 添加一些硬件元素(如果您的应用当前正在使用它),而不仅仅是将&lt;compatible-screens&gt; 添加到您的manifest.xml 中

  <uses-feature
            android:name="android.hardware.microphone"
            android:required="false" />
        <uses-feature
            android:name="android.hardware.telephony"
            android:required="false" />
        <uses-feature
            android:name="android.hardware.bluetooth"
            android:required="false" />
        <uses-feature
            android:name="android.hardware.camera"
            android:required="false" />
        <uses-feature
             android:name="android.hardware.location.gps"
             android:required="false" />
        <uses-feature android:name="android.hardware.wifi" 
            android:required="false" />

更多信息:

Filters on Google Play

http://developer.android.com/guide/topics/manifest/uses-feature-element.html

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2020-11-20
    • 1970-01-01
    • 1970-01-01
    • 2013-10-16
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多