Adb install failure: INSTALL_CANCELED_BY_USER

后端 未结 20 1881
执笔经年
执笔经年 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: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!

提交回复
热议问题