Google 控制台警告我的应用需要 CAMERA 权限
Google Console warns my app requires CAMERA permission
上传 APK 时出现此错误
You app has an APK with version code 1 which requires the following permission(s): android.permission.CAMERA. Apps that use these permissions in an APK must define privacy policy.
我的应用不使用相机权限。它只使用互联网权限。
这是AndroidManifest.xml:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android" android:versionCode="1" android:versionName="1.0" package="com.example.MyApp" android:installLocation="auto">
<uses-sdk android:minSdkVersion="15" />
<uses-permission android:name="android.permission.INTERNET" />
<application android:label="My application" android:icon="@drawable/icon"></application>
</manifest>
使用工具:如果您在清单文件中维护该摄像头权限,则节点删除该权限,同时使用摄像头和 READ_PHONE_STATE
<uses-permission android:name="android.permission.CAMERA" tools:node="remove" />
<uses-permission android:name="android.permission.READ_PHONE_STATE" tools:node="remove" />
如果您的清单包含此行:
<uses-feature android:name="android.hardware.camera" android:required="true"/>
那么请删除它。
原来是外部库需要摄像头权限。
1.If Your manifest contain camera permission please remove
<uses-feature android:name="android.hardware.camera" />
<uses-feature android:name="android.hardware.camera.autofocus" />
<uses-permission android:name="android.permission.CAMERA" />
2.Check Weather you give runtime camera permission or not if yes then remove camera permission.
3.Please check your external library may use camera permission.
上传 APK 时出现此错误
You app has an APK with version code 1 which requires the following permission(s): android.permission.CAMERA. Apps that use these permissions in an APK must define privacy policy.
我的应用不使用相机权限。它只使用互联网权限。
这是AndroidManifest.xml:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android" android:versionCode="1" android:versionName="1.0" package="com.example.MyApp" android:installLocation="auto">
<uses-sdk android:minSdkVersion="15" />
<uses-permission android:name="android.permission.INTERNET" />
<application android:label="My application" android:icon="@drawable/icon"></application>
</manifest>
使用工具:如果您在清单文件中维护该摄像头权限,则节点删除该权限,同时使用摄像头和 READ_PHONE_STATE
<uses-permission android:name="android.permission.CAMERA" tools:node="remove" />
<uses-permission android:name="android.permission.READ_PHONE_STATE" tools:node="remove" />
如果您的清单包含此行:
<uses-feature android:name="android.hardware.camera" android:required="true"/>
那么请删除它。
原来是外部库需要摄像头权限。
1.If Your manifest contain camera permission please remove
<uses-feature android:name="android.hardware.camera" />
<uses-feature android:name="android.hardware.camera.autofocus" />
<uses-permission android:name="android.permission.CAMERA" />
2.Check Weather you give runtime camera permission or not if yes then remove camera permission.
3.Please check your external library may use camera permission.