应用似乎与任何设备不兼容

时间:2015-12-08 19:54:41

标签: android file manifest

我知道这个问题已被多次询问过。但到目前为止,这个论坛的所有帖子对我都没有帮助。请协助,我的应用程序似乎与任何设备不兼容。为清晰起见,我附上了一张图片和清单文件

Android play Store screenshot

   <?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="za.co.coolnot.miim" >
    <supports-screens
        android:smallScreens="true"
        android:normalScreens="true"
        android:largeScreens="true"
        android:xlargeScreens="true"
        android:anyDensity="true"

        />   


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

    <application
        android:name=".Miim"
        android:allowBackup="true"
        android:icon="@mipmap/miim"
        android:label="@string/app_name"
        android:theme="@style/White" >
        <meta-data
            android:name="com.facebook.sdk.ApplicationId"
            android:value="@string/app_id" />
        <activity
            android:name=".MainActivity"
            android:screenOrientation="portrait"
            android:label="@string/app_name" >
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />

                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>
        <activity
            android:name="com.facebook.FacebookActivity"
            android:screenOrientation="portrait"
            android:configChanges="keyboard|keyboardHidden|screenLayout|screenSize|orientation"
            android:label="@string/app_name"
            android:theme="@android:style/Theme.Translucent.NoTitleBar" />
        <activity
            android:screenOrientation="portrait"
            android:name=".Home"
            android:label="@string/title_activity_home" >
        </activity>
        <activity
            android:screenOrientation="portrait"
            android:name=".SelectPages"
            android:label="@string/title_activity_select_pages" >
        </activity>
        <activity
            android:screenOrientation="portrait"
            android:name=".Settings"
            android:label="@string/title_activity_settings" >
        </activity>
        <activity
            android:name=".Error"
            android:screenOrientation="portrait"
            android:label="@string/title_activity_error" >
        </activity>
        <activity
            android:screenOrientation="portrait"
            android:name=".About"
            android:label="@string/title_activity_about" >
        </activity>
    </application>

2 个答案:

答案 0 :(得分:0)

使用&lt;兼容屏幕&gt;相反,as explained here

<manifest ... >
    <compatible-screens>
        <!-- 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" />
    </compatible-screens>
    ...
    <application ... >
        ...
    <application>
</manifest>

...因为:

  

虽然你也可以使用&lt;兼容屏幕&gt;的元素   反向场景(当您的应用程序与较小版本不兼容时)   屏幕),如果您改为使用&lt;支持屏幕&gt;如   在下一节中讨论,因为它并不需要你   指定应用程序支持的每个屏幕密度。

答案 1 :(得分:0)

从build.gradle(app level)替换compile 'org.apache.directory.studio:org.apache.commons.io:2.4'

编译'commons-io:commons-io:2.4'