Search code examples
androideclipseadbandroid-calendar

Deploying Google Calendar project gives INSTALL_FAILED_VERSION_DOWNGRADE


I have been able to clone and build Google Calendar app along with its dependencies, thanks to this post : Error while running Calendar project

But i am unable to get it to run on Emulator or Tablet (Galaxy Tab 4), apparently it is trying to overwrite and an existing app and i'm getting the Installation error: INSTALL_FAILED_VERSION_DOWNGRADE On Emulator i tried a manual delete of the app Calendar:

rm -rf /system/apps/Calendar/Calendar.apk and rm -rf /data/data/com.android.calendar

On Tablet i tried the same thing, plus a google app GoogleCalendarSyncAdapter.apk

rm -rf /system/apps/GoogleCalendarSyncAdapter.apk and rm -rf /data/data/com.google.android.syncadapters.calendar

But nothing helped, i'm still getting the same version downgrade error.

I also tried to force downgrade with $adb install -r AppName.apkbut as expected i get an INSTALL_PARSE_FAILED_INCONSISTENT_CERTIFICATES

Can someone please point to the app colliding with google calendar App, or what should i delete to be able to deploy. thanks in advance.

By the way the project is named AllInOneActivitythe APK name is AllInOneActivity.apk


Solution

  • Change package name of your app - from com.android.calendar to something unique.