我设置了uses-feature android:required ="false"但是Google Play一直坚持使用这些功能 [英] I set uses-feature android:required="false" but Google play keeps insisting on these features

查看:116
本文介绍了我设置了uses-feature android:required ="false"但是Google Play一直坚持使用这些功能的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经对我的应用进行了编码,以使其具有一些喜欢的功能,但由于我希望我的应用可在所有设备上使用,因此不需要其他功能.在我的清单中,我设置了:

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" />

当我上传apk文件时,Google Play仍然坚持要求提供人像,位置,GPS和麦克风功能.不再需要电话.有什么想法吗?

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?

推荐答案

在反思中,答案很明显,因为电话是小写的.由于某种原因,即使在我的使用权限声明中可以使用大写字母,也需要使用小写字母.这是起作用的代码:

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!

这篇关于我设置了uses-feature android:required ="false"但是Google Play一直坚持使用这些功能的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆