屏幕密度为440 dpi的设备与在Google Play上发布的应用不兼容 [英] Devices with screen density 440 dpi are not compatible with app being published on Google Play

查看:101
本文介绍了屏幕密度为440 dpi的设备与在Google Play上发布的应用不兼容的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在AndroidManifest.xml中添加<compatible-screens>块后,某些设备不兼容.例如,像素3和像素3a.两者都具有密度屏幕440 DPI.但是,Google的所有其他设备都是兼容的.问题是我需要支持有限的设备集(UI不适合平板电脑或分辨率较低的设备).

After adding <compatible-screens> block to AndroidManifest.xml some devices become incompatible. For example Pixel 3 and Pixel 3a. Both have a density screen 440 DPI. However all other devices from Google are compatible. The thing is I need to support limited set of devices (the UI is not suitable for tablets or devices with low resolutions).

我的想法是这些设备可能属于

My idea was these devices might belong to

<screen android:screenSize="normal" android:screenDensity="420" />
<screen android:screenSize="normal" android:screenDensity="480" />

<screen android:screenSize="large" android:screenDensity="420" />
<screen android:screenSize="large" android:screenDensity="480" />

存储桶.

设置android:screenDensity="440"不起作用. Google Play禁止以这种屏幕密度上传APK.

Setting android:screenDensity="440" is not working. Google Play prohibits uploading apk with such screen density.

这是上面提到的完整代码块

Here is a mentioned above complete block of code

<compatible-screens>
    <screen android:screenSize="normal" android:screenDensity="xhdpi" />
    <screen android:screenSize="normal" android:screenDensity="xxhdpi" />
    <screen android:screenSize="normal" android:screenDensity="xxxhdpi" />
    <screen android:screenSize="normal" android:screenDensity="420" />
    <screen android:screenSize="normal" android:screenDensity="480" />
    <screen android:screenSize="normal" android:screenDensity="560" />
    <screen android:screenSize="normal" android:screenDensity="640" />

    <screen android:screenSize="large" android:screenDensity="xhdpi" />
    <screen android:screenSize="large" android:screenDensity="xxhdpi" />
    <screen android:screenSize="large" android:screenDensity="xxxhdpi" />
    <screen android:screenSize="large" android:screenDensity="420" />
    <screen android:screenSize="large" android:screenDensity="480" />
    <screen android:screenSize="large" android:screenDensity="560" />
    <screen android:screenSize="large" android:screenDensity="640" />
</compatible-screens>

我试图用screenSizescreenDensity的不同组合上载apk文件,并检查这些设备是否兼容.我还没有找到.

I was trying to upload apk files with different combinations of screenSize and screenDensity and check if those devices become compatible. I have not found it yet.

推荐答案

AndroidManifest.xml标记上方的AndroidManifest.xml中添加以下代码

Add below code in AndroidManifest.xml above application tag

<supports-screens
    android:anyDensity="true"
    android:largeScreens="true"
    android:normalScreens="true"
    android:resizeable="true"
    android:smallScreens="true"
    android:xlargeScreens="true" />

这篇关于屏幕密度为440 dpi的设备与在Google Play上发布的应用不兼容的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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