[英]Can't find uses-permission into manifest file
I'm trying to upload a new version of an application into Google Developer Console. 我正在尝试将新版本的应用程序上传到Google Developer Console。
At the end of the upload, the console show this error message: "Your APK uses permissions that require the setting of privacy policies: (android.permission.CAMERA)" 在上传结束时,控制台显示以下错误消息:“您的APK使用的权限需要设置隐私权政策:(android.permission.CAMERA)”
So I think that I have this uses-permission into the manifest file and I need to add a google privacy policy. 因此,我认为我在清单文件中具有此使用权限,并且需要添加Google隐私权政策。
That's ok, but this is my manifest file: 可以,但这是我的清单文件:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="simone.biliato.delonghitrevisotvb">
<application
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:supportsRtl="true"
android:theme="@style/AppTheme">
<activity
android:name="simone.biliato.delonghitrevisotvb.MainActivity"
android:label="@string/app_name"
android:theme="@style/AppTheme.NoActionBar">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<service android:name="simone.biliato.delonghitrevisotvb.NotificationInstanceIdService">
<intent-filter>
<action android:name="com.google.firebase.INSTANCE_ID_EVENT" />
</intent-filter>
</service>
<service android:name="simone.biliato.delonghitrevisotvb.NotificationMessagingService">
<intent-filter>
<action android:name="com.google.firebase.MESSAGING_EVENT" />
</intent-filter>
</service>
</application>
Where are all the permissions? 所有权限在哪里? Why I don't see them?
为什么我看不到他们? I'm sure that I added them earlier and now disappear.
我确定我早些添加了它们,现在消失了。 Is there a specific location?
有没有特定的位置? A list of all permission for the project?
该项目的所有权限列表?
User permissions are made up from the ones you have in your manifest and those that come from the library or dependencies you have in your project. 用户权限由清单中的权限以及项目中库或依赖项中的权限组成。 The result will be a manifest merged by all of them.
结果将是所有这些人合并的清单。 Check your dependencies.
检查您的依赖项。
You can use the apk analyzer : https://developer.android.com/studio/build/apk-analyzer.html 您可以使用apk分析器: https : //developer.android.com/studio/build/apk-analyzer.html
Our friends from CommonsWare give us a good solution to detect where the permissions come from: https://commonsware.com/blog/2015/06/25/hey-where-did-these-permissions-come-from.html 来自CommonsWare的朋友为我们提供了一个很好的解决方案,可以检测到权限来自何处: https : //commonsware.com/blog/2015/06/25/hey-where-did-these-permissions-come-from.html
To get a better sense of where those elements are coming from, we can look at app/build/outputs/logs/manifest-merger-debug-report.txt.
为了更好地了解这些元素的来源,我们可以查看app / build / outputs / logs / manifest-merger-debug-report.txt。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.