应用程序与平板电脑不兼容 [英] Application is incompatible with tablets

查看:236
本文介绍了应用程序与平板电脑不兼容的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个在Xamarin Studio中创建的项目,当我在Google Play中发布时似乎出现了一些问题:

I have a project created in Xamarin Studio that seems to have some problems when I publish in Google Play:

发布该应用程序后,我可以正常安装在手机中,但是当我尝试通过平板电脑在Google Play中访问该应用程序时,它表示该应用程序与设备不兼容.

When the application is published, I can install in phones normally, but when I try to access the application in Google Play through a tablet it says the application is incompatible with the device.

我是android开发的新手,所以对此有一些疑问...我试图在应用程序清单中显示兼容的屏幕:

I'm new to android development, so I have some questions about this... I tried to had the compatible screens in the application manifest:

<?xml version="1.0" encoding="utf-8"?>
    <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="my.package.name" android:versionName="1.0.0" android:versionCode="42">
    <uses-sdk android:minSdkVersion="16" android:targetSdkVersion="21" />
    <uses-permission android:name="android.permission.CAMERA" />
    <uses-permission android:name="android.permission.INTERNET" />
    <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
    <uses-permission android:name="android.permission.SEND_SMS" />
    <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
    <uses-permission android:name="android.permission.WAKE_LOCK" />
    <uses-permission android:name="android.permission.VIBRATE" />
    <uses-permission android:name="android.permission.GET_ACCOUNTS" />
    <uses-permission android:name="com.google.android.c2dm.permission.RECEIVE" />
    <uses-feature android:name="android.hardware.camera.autofocus" />
    <permission android:protectionLevel="signature" android:name="my.package.name.permission.C2D_MESSAGE" />
    <uses-permission android:name="my.package.name.permission.C2D_MESSAGE" />
    <application android:label="MyApplication" android:icon="@drawable/Icon" android:theme="@android:style/Theme.NoTitleBar">
    <meta-data android:name="com.facebook.sdk.ApplicationId" android:value="@string/FacebookAppID" />
    <activity android:name="com.facebook.FacebookActivity" android:configChanges="keyboard|keyboardHidden|screenLayout|screenSize|orientation" android:theme="@android:style/Theme.Translucent.NoTitleBar" android:label="@string/ApplicationName" />
    <service android:name="parse.ParsePushService" />
    <receiver android:name="parse.ParsePushBroadcastReceiver" android:permission="com.google.android.c2dm.permission.SEND">
        <intent-filter>
            <action android:name="com.google.android.c2dm.intent.RECEIVE" />
            <action android:name="com.google.android.c2dm.intent.REGISTRATION" />
            <category android:name="my.package.name" />
        </intent-filter>
    </receiver>
    </application>
    <compatible-screens>
        <!--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>
</manifest>

我收到了一封电子邮件,指出平板电脑不兼容,所以我尝试了1个物理平板电脑和2个虚拟平板电脑,但它们确实不兼容.

I received some email's that the tablets weren't compatible, so I tried 1 physical tablet and 2 virtual tablets and they really weren't compatible.

我还需要其他东西吗?还是问题出在Google Play开发者控制台中?

Do I need to had something else? Or the problem is in Google Play Developer Console?

推荐答案

我将发布我所说的所有内容作为答案.我输入这些内容的顺序与重要性无关.

I am just going to post everything I said as an answer. The order I put these in does not correlate with importance.

除非您的应用只能在某些屏幕上运行,否则您无需使用< compatible-screens> .

You should not need to use the <compatible-screens> unless your app should only run on certain screens.

在清单中,我添加了以下内容,尽管您可能不需要这样做:

In my manifest, I have added the following, though this may not be required for you:

<uses-feature android:name="android.hardware.screen.portrait" android:required="false" />
<uses-feature android:name="android.hardware.screen.landscape" android:required="false" />

我会在Google Dev Console中查看并确保您不排除设备,并可能会查看受支持的设备列表中是否有任何平板电脑.如果我搜索平板电脑",我有80.

I would look in the Google Dev Console and make sure you are not excluding devices and maybe look to see if any Tablets are in the supported devices list. I have 80 if I search 'Tablet'.

最后,请确保您至少检查以下体系结构: armeabi-v7a x86 . armeabi 已过时,您可以执行其他两个操作,但我们不这样做,因为我们在发布模式下使用LLVM编译,这与64位体系结构不兼容.这样做的好处是,所有64位体系结构仍然可以使用32位构建,因此如果您检查这3个,它们仍然会被覆盖.

Finally, make sure you are at least checking the following architectures: armeabi-v7a and x86. armeabi is deprecated and you could do the other two but we do not since we use LLVM compiling in release mode, which is not compatible with the 64 bit architectures. The good thing about that is that all of the 64 bit architectures can still use 32 bit builds so they all still get covered if you check those 3.

这篇关于应用程序与平板电脑不兼容的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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