[英]Android Studio: Failure [INSTALL_FAILED_USER_RESTRICTED]
I work on Android Studio with Meizu MX6
.我使用Meizu MX6
在 Android Studio 上工作。 Previously everything was ok.以前一切正常。 But it seems after updating Flyme
, I started getting this problem:但是似乎在更新Flyme
之后,我开始遇到这个问题:
Failure [INSTALL_FAILED_USER_RESTRICTED]失败 [INSTALL_FAILED_USER_RESTRICTED]
If I choose "Ok" I get next:如果我选择“确定”,我会得到下一个:
DELETE_FAILED_INTERNAL_ERROR DELETE_FAILED_INTERNAL_ERROR
When I work with another smartphone all right.当我使用另一部智能手机时,一切正常。 If I copy apk-file on my phone all right too.如果我也可以在手机上复制 apk 文件。 It installs and runs.它安装并运行。 Install software from unknown sources is on.从未知来源安装软件已打开。
I had the same issue.我有同样的问题。 It happens only on Flyme
due to Security
App.由于Security
应用程序,它仅在Flyme
上发生。 To enable installation:要启用安装:
Flyme
apps) (它是预装的Flyme
应用之一)Have found the solution here: http://bbs.flyme.cn/thread-1106582-1-1.html using Google Translate.在这里找到了解决方案: http : //bbs.flyme.cn/thread-1106582-1-1.html使用谷歌翻译。
I also had the same problem with my Xiaomi Redmi note 3 .我的小米红米 Note 3也有同样的问题。 here's how i solved it,这是我解决它的方法,
settings
>> Additional Settings
.转到settings
>> Additional Settings
。developer options
.(if its not there, first goto about phone
and tap on build number
7 times...and start again from step 1)转到developer options
。(如果不存在,首先转到about phone
并点击内部build number
7 次...然后从第 1 步重新开始)install via USB
.单击install via USB
。I have had the same problem with XIAO MI.我和小蜜也有同样的问题。
I went to Settings -> Additional Settings -> Developer options -> Turn On "Install via USB"我去设置 -> 其他设置 -> 开发人员选项 -> 打开“通过 USB 安装”
Only you can activate this switch i f you have a Xiaomi count , create and activate your count, then sign on and turn on install via USB.如果您有小米计数,则只有您可以激活此开关,创建并激活您的计数,然后登录并打开通过 USB 安装。
The device is temporarily restricted error appears in MIUI 8.5. MIUI 8.5 中出现设备暂时受限错误。 To resolve the error you need to make WIFI off and make mobile data on and then enable the option “Install via USB” .要解决此错误,您需要关闭 WIFI并打开移动数据,然后启用“通过 USB 安装”选项。 It will work for you.它会为你工作。 Enjoy!享受!
In my Redmi4 i had the same issue.在我的 Redmi4 中,我遇到了同样的问题。 The steps followed to overcome: (1)克服的步骤如下:(1)
DONE完成
On Redmi Note 4, Go To Settings --> System & Device (Additional Settings) --> Developer Options --> Install via USB.在 Redmi Note 4 上,转到设置 --> 系统和设备(其他设置)--> 开发人员选项 --> 通过 USB 安装。
Register using a mobile number(OTP).使用手机号码(OTP)注册。
Try again, should work.再试一次,应该可以。
Do you have a rooted phone with some application installed that manages App Access authorisations, like King Root?您是否有安装了一些管理应用程序访问授权的应用程序的 root 手机,例如 King Root?
I had faced with same problem on one of the devices.我在其中一台设备上遇到了同样的问题。 There was an app on device with super user access that was blocking the new installation.设备上有一个具有超级用户访问权限的应用程序阻止了新安装。 Had to approve installation in that app first before installing new apks.在安装新的 apk 之前,必须先批准在该应用程序中安装。
Redmi Note 7 和 pro 在开发人员选项中允许 USB 调试,通过 USB 安装并禁用通过 USB 验证应用程序
我在Maizu Pro 6上遇到了同样的问题,使手机扎根解决了问题。
if u app's packageName contains number like this : "com.meizu.01", failed. 如果您的应用程序的packageName包含如下数字:“ com.meizu.01”,则失败。
switch to 'com.meizu.one', ook! 切换到“ com.meizu.one”,确定!
This occurs when you select the option "remember my choice" and Decline accidentally.当您选择“记住我的选择”选项并意外拒绝时,就会发生这种情况。
The only solution I found was to change the name of the package and application, but this is not feasible in many cases我找到的唯一解决方案是更改包和应用程序的名称,但这在许多情况下是不可行的
If you got this after mistakenly "Cancel"-ing when you must have selected Remember my choice
then some dirty fix would be to:如果您在必须选择Remember my choice
时错误地“取消”-ing 后得到这个,那么一些肮脏的修复将是:
Manually copy the same debug apk from your build output to the same test phone.手动将相同的调试 apk 从您的版本 output 复制到相同的测试手机。
Manually install the apk.手动安装apk。 (You have to allow installation from unknown sources of course) (当然你必须允许从未知来源安装)
Go to "App Manager" and clear preferences. Go 到“App Manager”并清除首选项。
Restart the debug as usual.像往常一样重新启动调试。
NB: This was put up in a hurry after some wasted hours so, I'm yet to verify if step #3 is necessary for this to work.注意:这是在浪费了几个小时之后匆忙提出来的,所以我还没有验证是否需要第 3 步才能正常工作。
NBB: You'd be back to square one if you uninstall the app and try to do a fresh install from the debug so, apparently, the App Manager
preference reset doesn't cover whichever subsystem it is that governs the setting. NBB:如果您卸载应用程序并尝试从调试进行全新安装,那么您将回到原点,显然, App Manager
首选项重置不涵盖控制设置的任何子系统。 Yes, I know, this should infer that our first #NB is void but things don't always follow intuition so, I'm leaving it till it's verified.是的,我知道,这应该可以推断出我们的第一个#NB 是无效的,但事情并不总是遵循直觉,所以我将保留它直到它被验证。 :D :D
for MIUI 9:对于 MIUI 9:
I've found a way to unblock the app installs if you have acidentaly marked the option to always block it.如果您已将选项标记为始终阻止它,我已经找到了一种取消阻止应用程序安装的方法。
Open "Configurations" > "Apps" > "Manage Apps" > Permissions > Install via USB.打开“配置”>“应用程序”>“管理应用程序”>权限>通过 USB 安装。
Disable the switch for your app.为您的应用禁用开关。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.