我对此做了一些研究。最后,我认为这是由于Note 8的兼容屏幕设置不正确。但我不知道我应该设置什么。请提供一些帮助。
配置如下,
<compatible-screens>
<screen
android:screenDensity="480"
android:screenSize="large" />
<screen
android:screenDensity="480"
android:screenSize="xlarge" />
<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" />
<!-- all 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="560"
android:screenSize="normal" />
<screen
android:screenDensity="640"
android:screenSize="normal" />
<!-- all large size screens -->
<screen
android:screenDensity="ldpi"
android:screenSize="large" />
<screen
android:screenDensity="mdpi"
android:screenSize="large" />
<screen
android:screenDensity="hdpi"
android:screenSize="large" />
<screen
android:screenDensity="xhdpi"
android:screenSize="large" />
<!-- all xlarge size screens -->
<screen
android:screenDensity="ldpi"
android:screenSize="xlarge" />
<screen
android:screenDensity="mdpi"
android:screenSize="xlarge" />
<screen
android:screenDensity="hdpi"
android:screenSize="xlarge" />
<screen
android:screenDensity="xhdpi"
android:screenSize="xlarge" />
<!-- Special case for Nexus 7 -->
<screen
android:screenDensity="213"
android:screenSize="large" />
</compatible-screens>
首先,您的列表中没有任何xxhdpi或xxxhdpi密度。这意味着,您的应用程序将无法在许多设备上运行。注8型号也有xxhdpi密度。
如果要支持所有屏幕尺寸,则无需设置任何兼容屏幕。仅当您要限制某些屏幕尺寸时,才使用此选项。
compatible-screens
文章有一个重要的注释。
警告:通常,不应使用此清单元素。用 此元素可以大大减少您的潜在用户群 应用程序,不允许用户安装您的应用程序,如果他们 具有尚未列出的屏幕配置的设备。 您应该仅将其用作最后的手段,当应用程序 绝对不适用于特定的屏幕配置。相反 使用此元素,您应该遵循支持指南 多屏幕,为多个屏幕提供可扩展的支持 对不同的屏幕尺寸使用替代布局和位图,以及 密度。
源