Reputation:
I get this error when uploading 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.
My app does not use the camera permission. It only uses the Internet permission.
Here's the 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>
Upvotes: 1
Views: 3596
Reputation: 9
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.
Upvotes: 0
Reputation:
It turns out the camera permission is required by an external library.
Upvotes: 2
Reputation: 444
If your Manifest contains this line:
<uses-feature android:name="android.hardware.camera" android:required="true"/>
then please remove it.
Upvotes: 0
Reputation: 21929
use tools: node remove to that permission if you are maintaining that camera permission in manifest file, use both camera and 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" />
Upvotes: 0