2013-10-22 157 views
-2

我在Google Play中發佈了一款應用程序,但無法使其與平板電腦兼容。我怎樣才能解決這個問題Android應用程序與您的設備不兼容

這裏是我的清單文件

<?xml version="1.0" encoding="utf-8"?> 
<manifest xmlns:android="http://schemas.android.com/apk/res/android" 
package="packageName" 
android:installLocation="auto" 
android:versionCode="3" 
android:versionName="0.1.3" > 

<uses-sdk 
    android:minSdkVersion="9" 
    android:targetSdkVersion="17" /> 

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

<compatible-screens> 

    <screen android:screenSize="large" android:screenDensity="480" /> 
    <screen android:screenSize="xlarge" android:screenDensity="480" /> 

    <!--all small size screens --> 
    <screen android:screenSize="small" android:screenDensity="ldpi"/> 
    <screen android:screenSize="small" android:screenDensity="mdpi"/> 
    <screen android:screenSize="small" android:screenDensity="hdpi"/> 
    <screen android:screenSize="small" android:screenDensity="xhdpi"/> 

    <!--all normal size screens --> 
    <screen android:screenSize="normal" android:screenDensity="ldpi"/> 
    <screen android:screenSize="normal" android:screenDensity="mdpi"/> 
    <screen android:screenSize="normal" android:screenDensity="hdpi"/> 
    <screen android:screenSize="normal" android:screenDensity="xhdpi"/> 

    <!-- all large size screens --> 
    <screen android:screenSize="large" android:screenDensity="ldpi"/> 
    <screen android:screenSize="large" android:screenDensity="mdpi"/> 
    <screen android:screenSize="large" android:screenDensity="hdpi"/> 
    <screen android:screenSize="large" android:screenDensity="xhdpi"/> 

    <!-- all xlarge size screens -->   
    <screen android:screenSize="xlarge" android:screenDensity="ldpi"/> 
    <screen android:screenSize="xlarge" android:screenDensity="mdpi"/> 
    <screen android:screenSize="xlarge" android:screenDensity="hdpi"/> 
    <screen android:screenSize="xlarge" android:screenDensity="xhdpi"/> 

    <!-- Special case for Nexus 7 --> 
    <screen android:screenSize="large" android:screenDensity="213" /> 

</compatible-screens> 


<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /> 
<uses-permission android:name="android.permission.INTERNET" /> 
<uses-permission android:name="android.permission.CALL_PHONE" /> 
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /> 
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE"/> 

<application 
    android:allowBackup="true" 
    android:icon="@drawable/ic_launcher" 
    android:label="@string/app_name" 
    android:theme="@style/AppTheme" > 
    <activity 
     android:name="CompanyActivity" 
     android:configChanges="orientation" 
     android:label="@string/app_name" 
     android:screenOrientation="sensorPortait" 
     android:windowSoftInputMode="adjustPan" > 
     <intent-filter> 
      <action android:name="android.intent.action.MAIN" /> 

      <category android:name="android.intent.category.LAUNCHER" /> 
     </intent-filter> 
    </activity> 
    <activity 
     android:name="LoginActivity" 
     android:configChanges="orientation" 
     android:screenOrientation="sensorPortait" 
     android:windowSoftInputMode="adjustPan" > 
    </activity> 

</application> 

+0

您的應用程序是否具有sw-600和sw-720文件夾的任何佈局? –

+0

是的,我有佈局大和xlarge屏幕 – Mansi

+0

nope這些佈局可能會被電話使用。像xperia Z使用xxlarge。 –

回答

1

佈局sw600dp

佈局sw600dp土地

佈局sw720dp

layout-sw720d對土地

創建這些文件夾並粘貼您的佈局文件,以檢查問題

編輯: 現在手機佈局從小MED大XLARGE xxlarge變化。所以創建新的文件夾作爲我的答案 這些文件夾是用於具有最小寬度600和720的平板電腦的典型尺寸的設備

+0

hii ...仍有錯誤 – Mansi

+0

我不確定這是否有幫助,但是您是否在應用列表中添加了平板電腦的任何屏幕截圖? –

相關問題