Adb install failure: INSTALL_CANCELED_BY_USER

后端 未结 20 1728
执笔经年
执笔经年 2020-12-02 08:28

I try to install app via adb and get a error:

$ ./adb -d install /Users/dimon/Projects/one-place/myprogram/platforms/android/build/outputs/apk/android-debug.         


        
相关标签:
20条回答
  • 2020-12-02 08:45

    For MIUI OS Device

    1) Go to Setting

    2) Scroll down to Additional Setting

    3) You will find Developer option at bottom

    4) Turn this on - Install via USB: Toggle On

    By turning this on, It is working charm in my MIUI8 device.

    0 讨论(0)
  • 2020-12-02 08:46

    The problem seems to be with Instant Run feature.Go to "File -> Settings -> Build, Execution, Deployment -> Instant Run" and just disable it.

    Hope this works if above answers doesnt work..

    0 讨论(0)
  • 2020-12-02 08:46

    On Xiaomi Mi5s with MIUI8.3 (Android 6) Xiaomi.EU Rom:

    Settings/ Other Settings / Developer Options / Switch on: Allow USB Debug, Allow USB install and Allow USB Debug (Security options)

    {Sorry for the translation, my device has spanish}

    0 讨论(0)
  • 2020-12-02 08:50

    Its a Xiaomi's issue If possible update MIUI to latest version then go to Settings > Additional Settings > Developer Options > Developer options: Check the Install via USB option.

    This solved my issue hope it will also solve yours good luck!

    0 讨论(0)
  • 2020-12-02 08:52

    The same trouble with same device has been here.

    So, it's Xiaomi trouble, and here is a solution for this problem:

    1. Go to the "Security" application and tap "Options" at top right corner

    2. Scroll down to "Feature Settings" group, and look for "Permissions"

    3. At there switch off "Install via USB" option, which manages installation of the apps via USB and doesn't allow it.

    On Latest Redmi Device

    Settings > Additional Settings > Developer Options > Developer options: Check the Install via USB option.

    Good luck!

    0 讨论(0)
  • 2020-12-02 08:52

    One more thing: after some updates of MIUI developer mode becomes disabled. I was sure, that is was turned on, but i couldn't start the application. So i reenabled developer mode and everything started to work. I've encountered this problem several times. Hope it helps.

    0 讨论(0)
提交回复
热议问题