简体   繁体   English

部署失败:INSTALL_FAILED_USER_RESTRICTED:安装被用户取消,没有弹出允许窗口

[英]Deployment failed: INSTALL_FAILED_USER_RESTRICTED: Install canceled by User without allow-window popping up

normally when I use live debugging on my android (xiamo mi 8) there appears a pop up window that asks if I want to install the application.通常当我在我的 android (xiamo mi 8) 上使用实时调试时,会出现一个弹出窗口 window 询问我是否要安装应用程序。 This doesnt happen anymore and Visual Studio (I use Xamarin) gives me this:这不再发生,Visual Studio(我使用 Xamarin)给了我这个:

Fehler ADB0010: Deployment failed Mono.AndroidTools.InstallFailedException: Failure [INSTALL_FAILED_USER_RESTRICTED: Install canceled by user] bei Mono.AndroidTools.Internal.AdbOutputParsing.CheckInstallSuccess(String output, String packageName) in E:\A_work\548\s\External\androidtools\Mono.AndroidTools\Internal\AdbOutputParsing.cs:Zeile 341. Fehler ADB0010: Deployment failed Mono.AndroidTools.InstallFailedException: Failure [INSTALL_FAILED_USER_RESTRICTED: Install canceled by user] bei Mono.AndroidTools.Internal.AdbOutputParsing.CheckInstallSuccess(String output, String packageName) in E:\A_work\548\s\External\androidtools \Mono.AndroidTools\Internal\AdbOutputParsing.cs:Zeile 341。

Noteable that I dont have a drive labeled with E. What I've tried:值得注意的是,我没有标有 E 的驱动器。我尝试过的内容:

  • Disabled USB-debugging and enabled it again禁用 USB 调试并再次启用它
  • Revoked the debugging-authorisation for all known devices撤销所有已知设备的调试授权
  • Disabled USB-install and enabled it again禁用 USB 安装并再次启用它
  • Restarted Windows PC and the phone重启Windows电脑和手机

Go to your Developer options and click on Revoke USB debugging authorizations and try again. Go 到您的开发人员选项,然后单击撤销 USB 调试授权,然后重试。

Also in Redmi devices, you might see a notification inside the notification list, just click on it and choose allow.同样在 Redmi 设备中,您可能会在通知列表中看到一条通知,只需单击它并选择允许。 This notification appears when you try to install the application via usb/adb当您尝试通过 usb/adb 安装应用程序时会出现此通知

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM