I set uses-feature android:required=“false” but Google play keeps insisting on these features

扶醉桌前 提交于 2019-12-18 14:17:23

问题


I've coded my app so that it has some features which it prefers, but otherwise does not need as I want my app to be available to all devices. In my manifest I've set:

<uses-feature android:name="android.hardware.screen.PORTRAIT" android:required="false" />
<uses-feature android:name="android.hardware.telephony" android:required="false" />
<uses-feature android:name="android.hardware.LOCATION" android:required="false" />
<uses-feature android:name="android.hardware.location.GPS" android:required="false" />
<uses-feature android:name="android.hardware.MICROPHONE" android:required="false" />

When I upload my apk file, Google Play still insists that the Portrait, location, GPS and microphone features are required. The telephony one is no longer needed. Any thoughts on what is going on?


回答1:


On reflection the answer was obvious, as telephony is in lower-case. For some reason this requires lower case even though upper case works in my uses-permission declarations. Here's the code which worked:

<uses-feature android:name="android.hardware.screen.portrait" android:required="false" />
<uses-feature android:name="android.hardware.telephony" android:required="false" />
<uses-feature android:name="android.hardware.location" android:required="false" />
<uses-feature android:name="android.hardware.location.gps" android:required="false" />
<uses-feature android:name="android.hardware.microphone" android:required="false" />

Hope this is helpful to someone else!



来源:https://stackoverflow.com/questions/14299956/i-set-uses-feature-androidrequired-false-but-google-play-keeps-insisting-on-t

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!