Google play says “your device isn't compatible

2019-09-01 09:41发布

问题:

This is my android manifest file.I worked fine from the eclipse. I have uploaded my apk in google play store. It says the message "your device isn't compatible with this version" in all devices.But it is listed in the supporting devices. Please help me. I am testing with the device android 4.4.4

    <uses-feature
    android:name="android.hardware.camera"
    android:required="false" />

     <uses-feature
    android:name="android.hardware.telephony"
    android:required="false" />

<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.CAMERA" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.GET_ACCOUNTS" />
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
<uses-permission android:name="android.permission.WAKE_LOCK" />
<uses-permission android:name="android.permission.GET_TASKS" />

<permission
    android:name="com.rymm.classnet.permission.C2D_MESSAGE"
    android:protectionLevel="signature" />

<uses-permission android:name="com.rymm.classnet.permission.C2D_MESSAGE" />
<uses-permission android:name="com.google.android.c2dm.permission.RECEIVE" />
<uses-permission android:name="android.permission.VIBRATE" />

<uses-feature android:name="android.hardware.camera" />
<uses-feature android:name="android.hardware.camera.autofocus" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
<supports-screens
    android:anyDensity="true"
    android:largeScreens="true"
    android:normalScreens="true"
    android:smallScreens="true" />
<uses-sdk
    android:minSdkVersion="14"
    android:targetSdkVersion="21" />

回答1:

You have uses-feature android:name="android.hardware.camera" twice in your manifest. The first declaration sets android:required="false", however the second declaration will use the default which is android:required="true".

Also your manifest lists <uses-feature android:name="android.hardware.camera.autofocus" /> which will also use the default required value, android:required="true".

Therefore if your device does not have an autofocus camera it will be listed as not compatible in the play store.