【发布时间】:2015-04-02 13:46:12
【问题描述】:
我的应用没有将 Nexus 6 列为 Google Play 管理中心支持的设备。
我阅读了Getting Your Apps Ready for Nexus 6 and Nexus 9 的博客文章,其中说:
Nexus 6 的量化密度为 560 dpi,介于 xxhdpi 和 xxxhdpi 主要密度桶。
有一段正是关于我的问题:
确保您没有被 Google Play 过滤
如果您使用的是 AndroidManifest.xml 文件中的元素,您 应该停止使用它,因为它不可扩展以重新编译和 每次新设备问世时发布您的应用程序。但是,如果您必须 使用它,请确保更新清单以添加配置 这些设备(按屏幕尺寸和密度)。否则你的应用程序可能 从这些设备上的 Google Play 搜索结果中排除。
好吧,我必须使用<compatible-screens>,因为我试图从平板电脑中排除我的应用。
我当前在 Manifest 中的 <compatible-screens> 元素看起来像:
<compatible-screens>
<!-- small size screens -->
<screen
android:screenDensity="ldpi"
android:screenSize="small" />
<screen
android:screenDensity="mdpi"
android:screenSize="small" />
<screen
android:screenDensity="hdpi"
android:screenSize="small" />
<screen
android:screenDensity="xhdpi"
android:screenSize="small" />
<screen
android:screenDensity="480"
android:screenSize="small" />
<!-- normal size screens -->
<screen
android:screenDensity="ldpi"
android:screenSize="normal" />
<screen
android:screenDensity="mdpi"
android:screenSize="normal" />
<screen
android:screenDensity="hdpi"
android:screenSize="normal" />
<screen
android:screenDensity="xhdpi"
android:screenSize="normal" />
<screen
android:screenDensity="480"
android:screenSize="normal" />
<screen
android:screenDensity="640"
android:screenSize="normal" />
</compatible-screens>
Nexus 6 的正确配置是什么?
我试过了:
<screen
android:screenDensity="560"
android:screenSize="normal" />
<screen
android:screenDensity="480"
android:screenSize="large" />
<screen
android:screenDensity="560"
android:screenSize="large" />
<screen
android:screenDensity="640"
android:screenSize="large" />
但似乎没有一个可以解决问题。
【问题讨论】:
标签: android android-manifest google-nexus device-compatibility