2012-08-17 75 views
14

我有一個Android應用程序,AndroidManifest.xml列在下面。上傳到Google Play之後,Nexus 7被列爲UNSUPPORTED設備,我正試圖弄清楚原因。當然,Google Play不會告訴您爲什麼或者清單的許可或使用限制了它的支持。以下代碼的哪一部分導致Nexus 7被列爲不受支持的任何想法?Nexus 7支持Android應用程序清單程序集

<?xml version="1.0" encoding="utf-8"?> 
<manifest xmlns:android="http://schemas.android.com/apk/res/android" 
    package="com.xxxx.xxxx.applet" 
    android:versionCode="x" 
    android:versionName="x.x" > 

    <uses-sdk 
     android:minSdkVersion="12" 
     android:targetSdkVersion="14" /> 

    <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /> 
    <uses-permission android:name="android.permission.INTERNET" /> 
    <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /> 
    <uses-permission android:name="android.permission.CAMERA" /> 
    <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" /> 

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

    <application 
     android:name="com.xxxx.xxxx.xxxx.xxxx" 
     android:hardwareAccelerated="true" 
     android:icon="@drawable/ic_launcher" 
     android:label="@string/app_name" 
     android:largeHeap="true" 
     android:logo="@drawable/ic_launcher" 
     android:theme="@android:style/Theme.Holo" > 

     <activity 
      android:name="MainActivity" 
      android:configChanges="keyboardHidden|orientation" 
      android:icon="@drawable/ic_launcher" 
      android:label="@string/app_name" 
      android:launchMode="singleTop" > 
      <intent-filter> 
       <action android:name="android.intent.action.MAIN" /> 

       <category android:name="android.intent.category.LAUNCHER" /> 
       <category android:name="android.intent.category.DEFAULT" /> 
      </intent-filter> 

      <meta-data 
       android:name="android.hardware.usb.action.USB_DEVICE_ATTACHED" 
       android:resource="@xml/device_list" /> 
     </activity> 
</manifest> 

回答

34

這一個:

<uses-permission android:name="android.permission.CAMERA" /> 

它來作爲一個驚喜,許多因的Nexus 7確實有前置攝像頭,但它似乎沒有爲這個特殊許可的目的計數。

+29

要解決這個問題,請添加''。請參閱http://developer.android.com/guide/topics/manifest/uses-feature-element.html#permissions和http://android-developers.blogspot.com/2012/07/getting-your-app-ready -for-jelly-bean.html – CommonsWare 2012-08-17 17:34:12

+1

SUCCESS !!謝謝。此外,Google Play現在還會顯示40個可用設備。抱歉,如果我可以在另一個線程中找到這個,但是要感謝快速而正確的回覆 – user1607521 2012-08-17 19:05:56

+1

我一直在尋找這個答案! PROPS TO @CommonsWare !!! – TChadwick 2012-11-16 00:52:59