我有一个Nexus 6(1440 x 2560像素(~493 ppi像素密度))和一个LG G3(1440 x 2560像素(~538 ppi像素密度)),这表明:
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="..."
android:installLocation="preferExternal"
android:versionCode="..."
android:versionName="...">
<uses-sdk
android:minSdkVersion="14"
android:targetSdkVersion="22"/>
<uses-feature
android:glEsVersion="0x00020000"
android:required="true"/>
<uses-feature
android:name="android.hardware.touchscreen"
android:required="true"/>
<uses-feature
android:name="android.hardware.location"
android:required="true"/>
<uses-feature
android:name="android.hardware.camera"
android:required="true"/>
<uses-permission android:name="android.permission.VIBRATE"/>
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.GET_ACCOUNTS"/>
<uses-permission android:name="android.permission.WAKE_LOCK"/>
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/>
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION"/>
<!--GCM-->
<permission android:name="...permission.C2D_MESSAGE" android:protectionLevel="signature"/>
<uses-permission android:name="...permission.C2D_MESSAGE"/>
<uses-permission android:name="com.google.android.c2dm.permission.RECEIVE"/>
<!-- =========== Screen Types =========== -->
<supports-screens android:requiresSmallestWidthDp="400"/>
<compatible-screens>
<!-- all small size screens -->
<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"/>
<screen
android:screenDensity="640"
android:screenSize="small"/>
<!-- all normal size screens -->
<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"/>
<!-- all large size screens -->
<screen
android:screenDensity="mdpi"
android:screenSize="large"/>
<screen
android:screenDensity="hdpi"
android:screenSize="large"/>
<screen
android:screenDensity="xhdpi"
android:screenSize="large"/>
<screen
android:screenDensity="480"
android:screenSize="large"/>
<screen
android:screenDensity="640"
android:screenSize="large"/>
</compatible-screens>
LG G3可以下载应用程序,但Nexus 6无法下载。我在这里想念的是什么? 感谢。
修改
Haresh Chhelana的回答是正确的,尽管这更像是一种解决方案。我认为Google应该更改supports-screens
,而不仅仅是启用屏幕兼容模式(在我看来相当无用),但要排除某些设备。它更符合逻辑:
<supports-screens
android:smallScreens="true"
android:normalScreens="true"
android:largeScreens="true"
android:xlargeScreens="false"
android:anyDensity="true"/>
而不是在compatible-screens
内指定所有可能的组合,这就是为什么会出现这样的错误(当我们只是想要平板电脑时它会起作用,所以它对于手机来说也应该工作,但它并没有。) ..)。
答案 0 :(得分:2)
尝试添加此屏幕支持:
<screen
android:screenDensity="560"
android:screenSize="normal" />
参考。 :What is the right screen size and density configuration of Nexus 6?