INSTALL_FAILED_VERSION_DOWNGRADE when installing a debug apk
Trying to install a debug APK over a release build on the same physical device via adb install -r app-debug.apk. Fails: Failure [INSTALL_FAILED_VERSION_DOWNGRADE]. The debug build has versionCode 41 and the installed one has 42 (a release build from CI). I thought -r allowed replacing regardless. Do I have to bump the versionCode every time, or uninstall first? I would rather not wipe the app data just to test a build.
4 replies