我的应用在Google Play控制台中未列出Nexus 6作为支持的设备。
我阅读了博客文章Getting Your Apps Ready for Nexus 6 and Nexus 9,其中提到:
Nexus 6具有量化密度为560 dpi,介于xxhdpi和xxxhdpi主密度桶之间。
有一段文字与我的问题完全相关:
确保您没有在Google Play上被过滤
如果您正在使用AndroidManifest.xml文件中的元素,则应停止使用它,因为它不可扩展,每次推出新设备时都需要重新编译和发布应用程序。但是,如果必须使用它,请确保更新清单以添加这些设备的配置(按屏幕大小和密度)。否则,您的应用可能会被排除在这些设备的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>
元素如下:
<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" />
但似乎都没有起作用。