为什么应用程序不符合更新后片兼容 [英] Why is App not compatible with Tablets after update

查看:111
本文介绍了为什么应用程序不符合更新后片兼容的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

I have an app that's been available for over 2 years, and supported on tablets for as long as tablets have been around. I have an Asus Transformer tablet that I use for tablet testing. Before I made the update, the app was compatible with tablet devices. For my recent set of changes, then only thing I changed in the Android Manifest file was the app version number and app version string. Everything else is exactly the same as before. However, after the update, when I search for the app in Google Play the app doesn't appear. When I view the app in a browser on my tablet, it says "Your device isn't compatible with this version."

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

How exactly can this new version be incompatible with tablets when no permissions were modified? Inside of the Android Developer Console when I view my app, it says that 2,673 devices are supported and it says 0 devices are excluded (that's right, zero devices). Well if that's true, how can I possibly get an incompatibility message? Also, when I view the list of supported devices, my Asus tablet is listed there.

请注意,该应用程序的大小只有1.19 MB,而我居然有2个可执行相同的应用程序,但其他可执行文件是专门为Android 1.5和更低及其版本code为0300800,因此低于版本$ C $下,支持Android 1.6及更高版本(使用兼容包),可执行

Note that the app size is only 1.19 MB, and that I actually have 2 executables for the same app, but the other executable is specifically for Android 1.5 and lower and its version code is 0300800 so it is lower than the version code for the executable that supports Android 1.6 and higher (using the compatibility package).

另外,我能够在使用亚行连接到我的计算机直接加载应用到平板电脑。我甚至意识到现在这个问题正在发生的唯一原因是因为我收到的电子邮件从几个平板电脑的用户是谁说,他们收到了同样的信息作为我来说,除非他们有不同的药片,我这样做。

Also, I am able to load the app directly onto the tablet when connected to my computer using ADB. The only reason I even realized this problem was occurring now is because I received emails from a couple of tablet users who said they were getting the same message as me, except they had different tablets that I do.

下面是我的清单文件(再次,它是抛开持平的版本号):

Here is my Manifest file (again, it is unchanged aside from the version number):

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

推荐答案

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

I contacted Google, and they looked into the issue. There were a combination of issues. First, they said that the switch to the new Developer Console played a part because the old developer console was more lenient. They said that my old manifest file worked in the old Devloper Console, but technically the old manifest file didn't actually specify information for tablets.

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

So, I updated my manifest file to this, and now users with tablets are able to access the app in Google Play:

<?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>

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

In addition, they said to use supports-screens instead of compatible-screens in order to expand compatibility.

这篇关于为什么应用程序不符合更新后片兼容的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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