简体   繁体   English

Android 工作室:失败 [INSTALL_FAILED_USER_RESTRICTED]

[英]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]

https://i.stack.imgur.com/3492W.jpg

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:要启用安装:

  1. Open Security Application.打开安全应用程序。 (it is one of preinstalled Flyme apps) (它是预装的Flyme应用之一)
  2. Go to Permission转到权限
  3. Usb app installation. USB 应用程序安装。
  4. Turn off USB installation monitor.关闭 USB 安装监视器。

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,这是我解决它的方法,

  1. Go to settings >> Additional Settings .转到settings >> Additional Settings
  2. Go to 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 步重新开始)
  3. Click on install via USB .单击install via USB
  4. That's all, you are ready to rock :)就是这样,你已经准备好摇滚了 :)

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)

  1. Settings -> About Phone -> tap 7-8 times the MIUI version(to activate Developer Options)设置->关于手机->点击MIUI版本7-8次(激活开发者选项)
  2. Settings -> Additional settings-> Developer Options -> enable USB debugging -> install via USB设置 -> 其他设置 -> 开发者选项 -> 启用 USB 调试 -> 通过 USB 安装

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 后得到这个,那么一些肮脏的修复将是:

  1. Manually copy the same debug apk from your build output to the same test phone.手动将相同的调试 apk 从您的版本 output 复制到相同的测试手机。

  2. Manually install the apk.手动安装apk。 (You have to allow installation from unknown sources of course) (当然你必须允许从未知来源安装)

  3. Go to "App Manager" and clear preferences. Go 到“App Manager”并清除首选项。

  4. 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:

  1. Go to "Settings" -> "Additional Settings" -> "Developer Options". Go 到“设置”->“附加设置”->“开发者选项”。
  2. Disable "MIUI optimization" and restart your device.禁用“MIUI 优化”并重启您的设备。
  3. Enable "USB Debugging" within the Developer Options.在开发人员选项中启用“USB 调试”。
  4. Turn on the "Install via USB" option (By default, MTP (Media打开“通过 USB 安装”选项(默认情况下,MTP(媒体
    Transfer Protocol) is themode set.传输协议)是模式集。 In some instances, it may work在某些情况下,它可能会起作用
    with MTP as well).与 MTP 一样)。
  5. Configure the USB connection to "Charging" mode.将 USB 连接配置为“充电”模式。

I've found a way to unblock the app installs if you have acidentaly marked the option to always block it.如果您已将选项标记为始终阻止它,我已经找到了一种取消阻止应用程序安装的方法。

Reset options to "Always block" app install将选项重置为“始终阻止”应用安装

Open "Configurations" > "Apps" > "Manage Apps" > Permissions > Install via USB.打开“配置”>“应用程序”>“管理应用程序”>权限>通过 USB 安装。

Disable the switch for your app.为您的应用禁用开关。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 android中的失败[INSTALL_FAILED_USER_RESTRICTED: Invalid apk] - Failure [INSTALL_FAILED_USER_RESTRICTED: Invalid apk] in android INSTALL_FAILED_USER_RESTRICTED:android studio 使用 redmi 4 设备 - INSTALL_FAILED_USER_RESTRICTED : android studio using redmi 4 device 无法安装应用程序:INSTALL_FAILED_USER_RESTRICTED - The application could not be installed: INSTALL_FAILED_USER_RESTRICTED INSTALL_FAILED_USER_RESTRICTED 通过 USB 安装被禁用 - INSTALL_FAILED_USER_RESTRICTED Installation via USB is disabled INSTALL_FAILED_USER_RESTRICTED:安装被用户通过 adb 安装应用程序取消(无 SIM 卡) - INSTALL_FAILED_USER_RESTRICTED: Install canceled by user install apps via adb (no Sim Card) 部署失败:INSTALL_FAILED_USER_RESTRICTED:安装被用户取消,没有弹出允许窗口 - Deployment failed: INSTALL_FAILED_USER_RESTRICTED: Install canceled by User without allow-window popping up “无法完成会话:INSTALL_FAILED_USER_RESTRICTED:无效的APK。” - “Failed to finalize session : INSTALL_FAILED_USER_RESTRICTED: Invalid apk.” 无法安装APK [INSTALL_FAILED_DEXOPT] Android Studio - Failure to install APK [INSTALL_FAILED_DEXOPT] Android Studio 运行时Android Studio失败[INSTALL_PARSE_FAILED_MANIFEST_MALFORMED] - Android Studio Failure [INSTALL_PARSE_FAILED_MANIFEST_MALFORMED] on Run Android Studio失败[INSTALL_FAILED_OLDER_SDK] - Android Studio Failure [INSTALL_FAILED_OLDER_SDK]
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM