2014-01-10 32 views
3

當觀看我在谷歌的應用程序在我的華碩平板電腦的變壓器我看到下面的消息谷歌播放 - 您的設備與此版本不兼容 - 華碩TF101變壓器

Your device isn't compatible with this version 

這裏是我的清單文件播放。

<?xml version='1.0' encoding='utf-8'?> 
<manifest android:hardwareAccelerated="true" 
    android:versionCode="3" 
    android:versionName="1.0.2" 
    android:windowSoftInputMode="adjustPan" 
    package="com.sheffieldlentinepc.sentenceestimator" 
    xmlns:android="http://schemas.android.com/apk/res/android"> 

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

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

    <!-- Required permission to check licensing. --> 
    <uses-permission android:name="com.android.vending.CHECK_LICENSE" /> 

    <uses-sdk android:minSdkVersion="10" android:targetSdkVersion="18" /> 

    <application 
     android:hardwareAccelerated="true" 
      android:icon="@drawable/icon" 
      android:label="@string/app_name"> 

     <activity 
      android:configChanges="orientation|keyboardHidden|keyboard|screenSize|locale" 
      android:label="@string/app_name" 
      android:name="SentenceEstimator" 
      android:theme="@android:style/Theme.Black.NoTitleBar" 
      android:screenOrientation="portrait"> 

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

     </activity> 

    </application> 

</manifest> 

我的清單中是否有任何東西會導致此設備不兼容?

回答

1

好的我明白了!我的情況:

本來手機唯一的應用程序

重新設計爲平板電腦優化

我以爲紀念這一權限required="false"是我所需要的,因爲平板電腦沒有手機。 <uses-permission android:name="android.permission.CALL_PHONE" **android:required="false"** />

我的困惑是<uses-permission/><uses-feature/>在第10次讀完這個之後我終於抓住了它。 http://developer.android.com/distribute/googleplay/quality/tablet.html#hardware-requirements

我需要明確地將<uses-feature android:name="android.hardware.telephony" android:required="false" />添加到我的清單。

上傳到開發者控制檯,你應該看到「支持的設備」跳躍的數量,在我的情況下541設備。

當然,如果您的功能需要使用手機,您需要在運行時爲沒有手機的設備適當地處理它。

<uses-feature android:name="android.hardware.telephony" android:required="false" />添加到清單添加了對您的AsusTransformer TF101G的支持!

我希望這可以幫助別人!

相關問題