简体   繁体   English

找不到清单文件中的使用权限

[英]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.

相关问题 的角色 <uses-permission> 清单文件中标记? - Role of <uses-permission> tag in manifest file? 在清单中添加“使用权限”无效 - adding “uses-permission” in manifest doesn't work Android 23不生成用户权限元素的清单文件 - Android 23 Not Generating Manifest file for uses-permission elements 在manifest.xml文件中使用权限与android权限的权限 - uses-permission vs permission for android permissions in the manifest.xml file <uses-permission> 与 <permission> 在Android 6.0中的Manifest.xml - <uses-permission> vs <permission> in Android 6.0 Manifest.xml 解析Android Manifest File以使用python查找uses-permission标记 - Parsing Android Manifest File to look for the uses-permission tag using python 如何修复Android Manifest文件中的错误“Unsupported type&#39;use-permission&#39;” - How to fix the error “Unsupported type 'uses-permission'” in the Android Manifest file 导出APK时为什么从清单中删除了使用权限? - Why is uses-permission removed from manifest when exporting APK? 该 <uses-permission> 元素必须是直接的孩子 <manifest> 根元素 - The <uses-permission> element must be a direct child of the <manifest> root element 有没有办法检查哪些清单导入了一些使用权限? - Is there a way to check that which manifest imported some uses-permission?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM