2017-03-11 112 views
0

我有一個在Android> 21上正常工作的應用程序。但是當我在Android 18上運行它時,出現以下錯誤舊Android版本的android.permission.INTERACT_ACROSS_USERS_FULL

java.lang.SecurityException: Permission Denial: get/set setting for user 
asks to run as user -2 but is calling from user 0; 
this requires android.permission.INTERACT_ACROSS_USERS_FULL 
at com.android.server.am.ActivityManagerService.handleIncomingUser 
... 
E/AndroidRuntime: FATAL EXCEPTION: main 
java.lang.RuntimeException: Unable to instantiate activity 
ComponentInfo{com.example/com.example.MainActivity}: 
java.lang.ClassNotFoundException: 
Didn't find class "com.example.MainActivity" on path: 
/data/app/com.example-1.apk 
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2219) 
… 
Caused by: java.lang.ClassNotFoundException: 
Didn't find class "com.example.MainActivity" on path: /data/app/com.example-1.apk 
at dalvik.system.BaseDexClassLoader. 
… 
E/Launcher: Error finding setting, default accessibility to not found: 
Accessibility_enabled 
E/ViewRootImpl: sendUserActionEvent() mView == null 

這可以通過設置其他權限解決嗎?爲什麼我得到這個錯誤?

回答