RSS Feed应用程序不起作用

时间:2013-09-15 01:28:07

标签: android

我正在使用android studio,当我启动应用程序时,它无法正常工作,并且在android studio上显示此问题:

        09-13 23:41:37.579    2228-2380/? A/SdkSpecific17﹕ null
        java.lang.reflect.InvocationTargetException
        at java.lang.reflect.Method.invokeNative(Native Method)
        at java.lang.reflect.Method.invoke(Method.java:511)
        at com.google.android.location.os.real.SdkSpecific17.d(SourceFile:266)
        at ees.run(SourceFile:797)
        at java.lang.Thread.run(Thread.java:856)
        Caused by: java.lang.SecurityException: Permission Denial: getCurrentUser() from pid=2228, uid=10011 requires android.permission.INTERACT_ACROSS_USERS
        at android.os.Parcel.readException(Parcel.java:1425)
        at android.os.Parcel.readException(Parcel.java:1379)
        at android.app.ActivityManagerProxy.getCurrentUser(ActivityManagerNative.java:3871)
        at android.app.ActivityManager.getCurrentUser(ActivityManager.java:1948)
        ... 5 more
        09-13 23:41:37.719    2228-2380/? A/SdkSpecific17﹕ null
        java.lang.reflect.InvocationTargetException
        at java.lang.reflect.Method.invokeNative(Native Method)
        at java.lang.reflect.Method.invoke(Method.java:511)
        at com.google.android.location.os.real.SdkSpecific17.d(SourceFile:266)
        at efb.D(SourceFile:933)
        at dno.c(SourceFile:126)
        at dno.x_(SourceFile:149)
        at dnk.b(SourceFile:952)
        at dmr.b(SourceFile:331)
        at ees.run(SourceFile:798)
        at java.lang.Thread.run(Thread.java:856)
        Caused by: java.lang.SecurityException: Permission Denial: getCurrentUser() from pid=2228, uid=10011 requires android.permission.INTERACT_ACROSS_USERS
        at android.os.Parcel.readException(Parcel.java:1425)
        at android.os.Parcel.readException(Parcel.java:1379)
        at android.app.ActivityManagerProxy.getCurrentUser(ActivityManagerNative.java:3871)
        at android.app.ActivityManager.getCurrentUser(ActivityManager.java:1948)
        ... 10 more
你可以帮帮我吗?感谢

1 个答案:

答案 0 :(得分:1)

线索是

Caused by: java.lang.SecurityException: Permission Denial: getCurrentUser() from pid=2228, uid=10011 requires android.permission.INTERACT_ACROSS_USERS

您需要添加到manifest.xml

<uses-permission android:name="android.permission.INTERACT_ACROSS_USERS" />

话虽如此,我之前没有看过这个权限......我相信当你需要root权限时它会被使用。所以你也可能需要一部扎根的手机。