gpt4 book ai didi

java - RuntimeException 无法启动 Activity : Permission Denial: broadcast from android asks to run as user -1 but is calling from user 0

转载 作者:行者123 更新时间:2023-12-04 15:10:44 26 4
gpt4 key购买 nike

面对来自谷歌报告的错误(Android 9):

Fatal Exception: java.lang.RuntimeException
Unable to start activity: java.lang.SecurityException: Permission Denial:
broadcast from android asks to run as user -1 but is calling from user 0; this
requires android.permission.INTERACT_ACROSS_USERS_FULL or
android.permission.INTERACT_ACROSS_USERS
无法重现,也找不到任何线索。
什么会导致这种情况?有什么帮助吗?
谢谢。

最佳答案

在 list 中添加这个 android:protectionLevel="signature"。
更多详情可以查看Permission-Element
喜欢:

<permission android:name="android.permission.INTERACT_ACROSS_USERS_FULL" android:protectionLevel="signature"/>

关于java - RuntimeException 无法启动 Activity : Permission Denial: broadcast from android asks to run as user -1 but is calling from user 0,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/65250349/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com