adb force install

‹ 9:36 is tattoo time | Shared variables in Gradle's buildscript block ›

If you get Failure [INSTALL_FAILED_ALREADY_EXISTS] or Failure [INSTALL_FAILED_VERSION_DOWNGRADE] when installing an .apk on your Android emulator, you can run:

adb install -r -d path/to/the-debug-unaligned.apk

to force downgrading and replacing of the existing .apk package.

Subscribe to All Posts - Wesley Tanaka