2015-05-29 60 views
4

我有一個Nexus 6(1440 x 2560像素(〜493 ppi像素密度))和一個LG G3(1440 x 2560像素(〜538 ppi像素密度)),Nexus 6在Play Store中不支持

<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答案是正確的,雖然這是更多的黑客而不是解決方案。我認爲谷歌應該改變supports-screens不僅僅是爲了啓用屏幕兼容模式(在我看來很沒用),但排除一些設備。這是更符合邏輯是這樣的:

<supports-screens 
    android:smallScreens="true" 
    android:normalScreens="true" 
    android:largeScreens="true" 
    android:xlargeScreens="false" 
    android:anyDensity="true"/> 

而是裏面compatible-screens指定所有可能的組合,這就是爲什麼象這樣的錯誤發生(工作的時候,我們只是希望片中所以它應該工作太只是手機,但事實並非如此。 ..)。

+0

只是好奇,爲什麼所有這些限制的屏幕尺寸和密度? – Divers

+0

我只想手機,沒有平板電腦和480 = xxhdpi,640 = xxxhdpi – GuilhE

回答

2

打算進軍添加此屏幕支持:

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

參考。 :What is the right screen size and density configuration of Nexus 6?

+0

我猜Nexus 6它的screenSize =「large」,因爲它介於480和640之間應該被接受。爲什麼在560應該正常工作?謝謝! – GuilhE

+0

檢查我更新的答案。 –

+0

你的回答是正確的,它解決了這個問題,但它更像是一種解決方案。我已經更新了我的問題。 – GuilhE