Android Question adb: failed to install AppCompat_RAPID_DEBUG.apk: Failure

leitor79

Active Member
Licensed User
Longtime User
Hi,

So, I've downloaded this example, along with appcompat library 3.52, but I get this error when trying to compile:

B4A Version: 8.30
Parsing code. (0.00s)
Compiling code. (0.12s)
Compiling layouts code. (0.01s)
Organizing libraries. (0.00s)
Generating R file. (0.92s)
Compiling debugger engine code. (1.67s)
Compiling generated Java code. (4.01s)
Convert byte code - optimized dex. (10.30s)
Packaging files. (1.86s)
Copying libraries resources (0.00s)
Signing package file (private key). (1.71s)
ZipAlign file. (0.08s)
Installing file to device. Error
adb: failed to install AppCompat_RAPID_DEBUG.apk: Failure [INSTALL_FAILED_VERSION_DOWNGRADE]


I've deleted the objects folder, but I can't uninstall Android SDK Build-tools 21.1.2 (as said here, point 3) because the sdk manager doesn't have the uninstall option (in case that's relevant)

Any ideas?

Regards!
 

DonManfred

Expert
Licensed User
Longtime User
adb: failed to install AppCompat_RAPID_DEBUG.apk: Failure [INSTALL_FAILED_VERSION_DOWNGRADE]

the app installed has a higher versioncode than the one you want to install.
Raise the version or deinstall the app on the device first.
 
Upvote 0

leitor79

Active Member
Licensed User
Longtime User
Thanks, DonManfred.

The thing is that I've just downloaded the project and this happened the first time. Also, the "device" is a just-created virtual device; I've installed nothing on it (literally)

However, I've tried your suggestion and... it worked!?

Thank you!
 
Upvote 0
Top