Permission Denial: null asks to run as user 1771 but is calling from user 0; this requires android.p
2018-01-08 16:20
579 查看
android8.0报错Permission Denial: null asks to
run as user 1771 but is calling from user 0; this requires android.permission.INTERACT_ACROSS_USERS_FULL or android.permission.INTERACT_ACROSS_USERS
你的项目在Context子类里面使用了getUserId()方法,系统无法判断是用Context里面的还是你自己的。改下你自己的方法名就可以了
run as user 1771 but is calling from user 0; this requires android.permission.INTERACT_ACROSS_USERS_FULL or android.permission.INTERACT_ACROSS_USERS
你的项目在Context子类里面使用了getUserId()方法,系统无法判断是用Context里面的还是你自己的。改下你自己的方法名就可以了
相关文章推荐
- asks to run as user -2 but is calling from user 0; this requires android.permission.INTERACT_ACROSS_
- startInstrumentation asks to run as user -2 but is calling from user 0; this requires android.permission.INTERACT_ACROSS_USERS_FULL
- 华为mate10 Android8.0报错 SecurityException: Permission Denial: null asks to run as user 49 but is calli
- Android:get/set setting for user asks to run as user -2 but is calling from user 0
- System error &H80004015 - This class is configured to run as a security id different from the caller.
- android.util.AndroidRuntimeException Calling startActivity() from outside of an Activity context requires the FLAG_ACTIVITY_NEW_TASK flag. Is this really what you want? com.uethinking.microvideo.manag
- Android Permission Denial: starting Intent {***********}requires null 解决办法
- The goal you specified requires a project to execute but there is no POM in this directory 错误
- The goal you specified requires a project to execute but there is no POM in this directory
- RunningMapReduceExampleTFIDF - hadoop-clusternet - This document describes how to run the TF-IDF MapReduce example against ascii books. - This project is for those who wants to experiment hadoop as a skunkworks in a small cluster (1-10 nodes) - Google Pro
- RunningMapReduceExampleTFIDF - hadoop-clusternet - This document describes how to run the TF-IDF MapReduce example against ascii books. - This project is for those who wants to experiment hadoop as a skunkworks in a small cluster (1-10 nodes) - Google Pro
- VMWare:This virtual machine is configured to run with 4 CPUs, but the host has only 2 CPU(s).
- Attempting to badge the application icon but haven't received permission from the user to badge the
- Server asks us to fall back to SIMPLE auth, but this client is configured to only allow secure connections.
- AS:Error running app: Instant Run requires 'Tools | Android | Enable ADB integration' to be enabled.
- AS:Error running app: Instant Run requires 'Tools | Android | Enable ADB integration' to be enabled.
- java.sql.SQLException: null, message from server: "Host 'xxx' is not allowed to connect to this MySQL server"
- The goal you specified requires a project to execute but there is no POM in this directory...
- [ERROR] The goal you specified requires a project to execute but there is no POM in this directory
- null, message from server: "Host ***" is not allowed to connect to this MySQL server"