权限拒绝:获取/设置设定为用户要求为用户-2运行,但是从用户0调用用户、是从、权限

2023-09-07 10:04:10 作者:泅渡 。°

我的应用我的测试设备上正常工作(当我通过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中的建议在这里: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.

 
精彩推荐
图片推荐