应用程序似乎与任何设备都不兼容
App does not seem to be compatible with any device
我知道这个问题已经被问过很多次了。但是到目前为止,该论坛中的所有帖子都对我没有帮助。请协助解决这个问题,我的应用程序似乎与任何设备都不兼容。为了清楚起见,我附上了一张图片和我的清单文件
<?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>
改用 ,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>
...因为:
Although you can also use the < compatible-screens > element for the
reverse scenario (when your application is not compatible with smaller
screens), it's easier if you instead use the < supports-screens > as
discussed in the next section, because it doesn't require you to
specify each screen density your application supports.
从 build.gradle(应用级别)
替换编译 'org.apache.directory.studio:org.apache.commons.io:2.4'
与编译'commons-io:commons-io:2.4'
我知道这个问题已经被问过很多次了。但是到目前为止,该论坛中的所有帖子都对我没有帮助。请协助解决这个问题,我的应用程序似乎与任何设备都不兼容。为了清楚起见,我附上了一张图片和我的清单文件
<?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>
改用
<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>
...因为:
Although you can also use the < compatible-screens > element for the reverse scenario (when your application is not compatible with smaller screens), it's easier if you instead use the < supports-screens > as discussed in the next section, because it doesn't require you to specify each screen density your application supports.
从 build.gradle(应用级别)
替换编译 'org.apache.directory.studio:org.apache.commons.io:2.4'与编译'commons-io:commons-io:2.4'