为什么应用程序不更新后片兼容(Why is App not compatible with Tabl

2019-08-18 10:15发布

我有一个一直使用超过2年,并支持在平板电脑上,只要平板电脑已经存在的应用程序。 我有我使用的平板电脑测试的华硕平板电脑的变压器。 之前我做了更新,该应用程序是与平板设备兼容。 对于我最近的一系列变化,那么我唯一在Android清单文件改变了应用程序的版本号和应用程序版本字符串。 一切是完全一样了。 然而,在更新后,当我搜索在谷歌应用程序播放应用程序不会出现。 当我查看我的平板电脑浏览器应用程序,它说:“您的设备与此版本不兼容。”

这个新版本究竟如何,可以与平板电脑不兼容时,没有权限进行了修改? 里面,当我查看我的应用程序的Android开发者控制台的,它说,2673台设备的支持,它说0装置被排除在外(这是正确的,零个器件)。 那么,如果这是真的,我怎么可能得到一个不兼容的消息? 此外,当我查看支持设备列表,我的华硕平板电脑列在其中。

需要注意的是,应用程序的大小只有1.19 MB,而我居然有2个可执行文件为相同的应用程序,但其他可执行文件是专门为Android 1.5和更低,它的版本代码0300800所以它比为可执行文件的版本号低支持Android 1.6及更高(使用兼容包)。

此外,我能够在使用ADB连接到我的电脑上直接加载应用到平板电脑。 我甚至意识到这个问题,现在正在发生的唯一原因是因为我从一对夫妇谁说,他们收到同样的消息我,除了他们有不同的药片,我做平板电脑的用户收到的电子邮件。

这里是我的清单文件(再次,它是从版本号不变除外):

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
  package="my_package"
  android:versionCode="0400921"
  android:versionName="9.2.1"
  android:installLocation="auto">
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
<uses-permission android:name="com.android.vending.CHECK_LICENSE" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<supports-screens android:anyDensity="true"/>
<application android:icon="@drawable/icon" android:label="@string/app_name">
    <activity android:name=".App"
              android:label="@string/app_name">
        <intent-filter>
            <action android:name="android.intent.action.MAIN" />
            <category android:name="android.intent.category.LAUNCHER" />
        </intent-filter>
    </activity>

<activity android:name=".Activity1" android:label="Activity1"></activity>
<more activities>

</application>
<uses-sdk android:minSdkVersion="4" android:targetSdkVersion="8" />

Answer 1:

我联系了谷歌,他们调查了这个问题。 有问题的组合。 首先,他们说,切换到新的开发者控制台中发挥​​了作用,因为旧的开发者控制台更宽松。 他们说,我的老清单文件在老Devloper控制台的工作,但在技术上旧清单文件实际上并没有指定平板电脑的信息。

所以,我更新了我的清单文件这一点,而现在用户用平板电脑都能够访问该应用程序在谷歌播放:

<?xml version="1.0" encoding="utf-8"?>

<uses-sdk android:minSdkVersion="4" android:targetSdkVersion="10" />

<compatible-screens>
     <screen android:screenSize="large" android:screenDensity="480" />
     <screen android:screenSize="xlarge" android:screenDensity="480" />

    <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"/>

    <!--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" />

    <!-- 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" />

    <!-- 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" />

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

</compatible-screens>

    <application android:icon="@drawable/icon" android:label="@string/app_name">
        <activity android:name=".App"
                  android:label="@string/app_name">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>

    <activity android:name=".Activity1" android:label="Activity1"></activity>
        </application>

</manifest>

此外,他们说要用支架屏,而不是兼容的筛选,以扩大兼容性。



文章来源: Why is App not compatible with Tablets after update