android - 屏幕密度为 440 dpi 的设备与在 Google Play 上发布的应用不兼容

标签 android google-play-console

添加后<compatible-screens>阻止 AndroidManifest.xml 一些设备变得不兼容。例如 Pixel 3 和 Pixel 3a。两者都有一个密度屏幕 440 DPI。但是,Google 的所有其他设备都是兼容的。问题是我需要支持有限的设备集(UI 不适合平板电脑或低分辨率设备)。

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

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

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

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

我试图上传具有不同 screenSize 组合的 apk 文件和 screenDensity并检查这些设备是否兼容。我还没有找到它。

最佳答案

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

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

关于android - 屏幕密度为 440 dpi 的设备与在 Google Play 上发布的应用不兼容,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57852700/

相关文章:

Android WebView,缩放图像以适应屏幕

机器人 RestClientException : no suitable HttpMessageConverter found

android - 如何在android中传递soap请求

java - ReactNative - SSLException 构建电影示例

android - 内部测试轨道 - 无法下载最新版本

android - linux本地循环上的端口转发连接两个android模拟器

android - 从 Google Play 开发者控制台中的库中删除 APK

android - 如何在不更新 APK 文件的情况下解决违反使用 Android 广告 ID 政策和第 4.8 节的问题

google-play - 为什么我的应用评论没有显示在 google play 上,而是显示在我的 play 控制台中?

android - Beta 推出未到达 Google Play 控制台中的测试人员