1

When I export my Android application as APK and install it in the device it is working properly.

But if I try to launch the same Android application on Device via USB Debugging mode, I'm getting following error:

Installation error: INSTALL_FAILED_VERSION_DOWNGRADE

I'm using Google Play Services, v7 Appcompat with my application as library project.

I've set the Custom Debug Key (the same key which I used while exporting) as explained in this post.

Any suggestion what might be wrong?

Community
  • 1
  • 1
Gokul Nath KP
  • 13,135
  • 24
  • 77
  • 112

2 Answers2

1

Solution 1:

It means you're trying to install an app with the same packageName as an app that's already installed on the emulator, but the one you're trying to install has a lower versionCode .First uninstall your application from the emulator:

adb -e uninstall your.application.package.name

Then try to install the application again or increase the app version and try again.

Solution 2:

May be your package is the same as the default package name. So change and try it.

Solution 3:

Did you enabled Multiple account on your device (and push your apk via ADB)? If so you have to remove the apk in every account. After complete uninstall, your push will be OK.

Solution 4:

Check your activity class. It may be wrong.

SANN3
  • 7,856
  • 4
  • 54
  • 84
-1

Was answered here. Basically your new version, that you try to install via debugging has a lower version number, than the version, that's already on your phone.

Community
  • 1
  • 1
Morphyum
  • 44
  • 6
  • I Can't Comment on his Post till i have 50 reputation, so it would been better to leave the question alone? Also i DID include the essential part in the answer. – Morphyum Sep 09 '14 at 13:42