权限拒绝:获取/设置设定为用户要求为用户-2运行,但是从用户0调用 [英] Permission Denial: get/set setting for user asks to run as user -2 but is calling from user 0

查看:1316
本文介绍了权限拒绝:获取/设置设定为用户要求为用户-2运行,但是从用户0调用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的应用我的测试设备上正常工作(当我通过ADT和放大器安装它,当我通过导出的APK文件安装),但它没有Play商店的测试设备上,出现以下错误:

My application works normally on my test device (When I install it via ADT & when I install it via the exported APK file) but it fails on Play Store testing device with the following error:

权限拒绝:获取/设置设定为用户要求为用户-2运行,但是从用户0调用,这需要android.permission.INTERACT_ACROSS_USERS_FULL

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

我是新的Andr​​oid的世界,我不明白为什么它的作品在我的设备与功放上;它无法在同一设备上的Play商店的测试?

I'm new in Android world and I don't understand why it works on my device & it fails on the same device at Play Store test?

这是什么错误类型的机器人工作环境意味着什么?

What this error type means in Android work environment?

我添加了以下权限

android.permission.INTERACT_ACROSS_USERS_FULL

android.permission.INTERACT_ACROSS_USERS_FULL

在AndroidManifest.xml中的建议在这里:<一href="http://stackoverflow.com/questions/18179159/permission-denial-startactivity-asks-to-run-as-user-2-but-is-calling-from-user">Permission拒绝

in AndroidManifest.xml as recommended here: Permission Denial

但是,应用程序无法重新启动/他们的测试设备上打开了。

But the application failed again to launch / open on their test device.

编辑:

运行测试设备的Andr​​oid 4.3

推荐答案

有关谁比谁有这个问题,对我来说这只是其在AndroidManifest.xml文件错名字的活动的情况。

For anyone else who had this issue, for me it was simply a case of having an activity with the wrong name in the AndroidManifest.xml file.

我并不需要添加任何权限,一旦该活动名称已得到纠正(在我它说了错误的包名),它运行得很好。

I didn't need to add any permissions, once the activity name was corrected (in mine it stated the wrong package name), it ran fine.

这篇关于权限拒绝:获取/设置设定为用户要求为用户-2运行,但是从用户0调用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆