Failure [INSTALL_FAILED_ALREADY_EXISTS] when I tried to update my application

后端 未结 7 1727
灰色年华
灰色年华 2020-11-29 15:26

when I tried to update my applcation with new version that has same signature as previous one, shows above error.

What I am missing?

7条回答
  •  栀梦
    栀梦 (楼主)
    2020-11-29 16:04

    To Install

    adb install -r exampleApp.apk
    

    (The -r makes it replace the existing copy, add an -s if installing on an emulator)

    Make sure the app is signed the same and is the same debug/release variant

    Bonus

    I set up an alias in my ~/.bash_profile, to make it a 2char command.

    alias bi="gradlew && adb install -r exampleApp.apk"
    

    (Short for Build and Install)

提交回复
热议问题