Adb install failure: INSTALL_CANCELED_BY_USER

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

    Turn off Miui Optimizations on Developer Settings, then Restart the phone. it worked for me. Settings > Additional Settings > Developer Options > MIUI Optimization

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

    Im using Xiaomi Redmi Prime 3S, Non of the above method worked for me. This frustrated me

    what i tried was, i signed out from Mi Account and then created new account. tada... after that i can enable USB Debugging. Hope this helps.

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

    This is my case (using react-native) I press Ctr+C to interrupt while installing and after that this error occured. - solution:

    cd android
    ./gradlew clean
    
    0 讨论(0)
  • 2020-12-02 08:44

    In MIUI 8 go to Developer Settings and toggle "Install over USB" to enable it.

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

    For Redmi and Mi devices turn off MIUI Optimization

    Settings > Additional Settings > Developer Options > MIUI Optimization

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

    Faced the same Issue in MI devices and figured out the problem by following these Steps :

    1) Go to Setting

    2) Click on Additional Settings

    3) Click on Developer Options

    4) Click toggle of Install via USB to enable it

    and the issue will be resolved.

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