高版本手机出现 SecurityException
2018-06-19 本文已影响0人
smallestt
java.lang.SecurityException: Permission Denial: null asks to run as user 572732 but is calling from user 0; this requires android.permission.INTERACT_ACROSS_USERS_FULL or android.permission.INTERACT_ACROSS_USERS异常解决:
报错原因我父类BaseAct实现了一个方法 :
public int getUserId(){
}
这与其父类Context.java里的方法同名了
/**
* Get the userId associated with this context
* @return user id
*
* @hide
*/
@TestApi
public abstract @UserIdInt int getUserId();
所以把BaseAct.java里的getUserId改一下方法名就可以了!