简体   繁体   中英

Can't Debug Android Application on my Phone

Recently I tried to debug an application on my phone but I found this error:

Installation did not succeed.

The application could not be installed: INSTALL_FAILED_USER_RESTRICTED

I tried the following:

  1. Disable USB Debugging and Re-Enable it.
  2. Disable MIUI Optimization and Re-Enable it.
  3. Restart my phone.

The Problem still exists. I need some help.

Thanks in Advance !

Please check all this configuration in your device before you run your app into your physical android device

  • Enable Unknown sources toggle in settings so it will allow you to install apk which are not downloaded from google playstore
  • Enable USB Debugging toggle in settings which will allow you to install and debug by USB

once done unplug device and plug again so it may ask you for sha key confirmation which you need to confirm on plugin device

after that try to run app on your device, which will show you small dialog with timer of 10 seconds to allow to install.. if you miss it then it will automatically reject and show you error that you are facing

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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