android - Play 商店不支持 Nexus 6

标签 android google-play android-manifest

我有一个 Nexus 6(1440 x 2560 像素(~493 ppi 像素密度))和一个 LG G3(1440 x 2560 像素(~538 ppi 像素密度))和这个 list :

<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 中指定所有可能的组合,这就是为什么会发生这样的错误(当我们只需要平板电脑时它会起作用,所以它应该只适用于手机但它不会.. .).

最佳答案

尝试添加此屏幕支持:

<screen
    android:screenDensity="560"
    android:screenSize="normal" />

引用。 : What is the right screen size and density configuration of Nexus 6?

关于android - Play 商店不支持 Nexus 6,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30526014/

相关文章:

android - 无缝嵌套滚动 (Android)

java - Android程序修改

android - 一个应用如何在安卓市场启用 "Allow Automatic Updating"

java - 无法实例化 Activity ComponentInfo 无法实例化类

android - 如何为flutter应用添加 '.in'域以避免Android资源链接错误?

android - Xamarin.forms : how to add a gradient color for tabbar

android - Android 应用程序的推送通知服务未在 Google Play 上发布

android - 某些设备中的 PlayStore 应用程序仍显示旧版本,而新版本已上线并可在 Play 商店中使用

android - 我的应用无法安装在 HVGA 设备上

android - 为什么建议不要保留带有 UI 的 fragment ?