问题描述
这是我的android清单文件.我在eclipse上运行良好.我已经将我的apk上传到了Google Play商店.它在所有设备中显示您的设备与此版本不兼容"消息.但在支持的设备中列出了该消息.请帮我.我正在使用设备android 4.4.4进行测试
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" />
推荐答案
清单中有两次uses-feature android:name="android.hardware.camera"
.第一个声明设置android:required="false"
,但是第二个声明将使用默认设置android:required="true"
.
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"
.
您的清单中还会列出<uses-feature android:name="android.hardware.camera.autofocus" />
,该清单还将使用默认的必需值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"
.
因此,如果您的设备没有自动对焦相机,则会在Play商店中将其列为不兼容.
Therefore if your device does not have an autofocus camera it will be listed as not compatible in the play store.
这篇关于Google Play表示“您的设备与此版本不兼容".在所有设备上均可使用,但在eclipse adb上运行正常的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!