-1

Currently I am using Eclipse IDE with ADT plugin for my Android application development, but when I change the same source code to another machine with same IDE and ADT Plugin, the generated APK cannot be installed as upgrade, android show a error message (I don't remember the error message)

Since that error, I use the original IDE to compile an APK and finally upgrade on the installed devices.

What I need to add/change in other machines to avoid install errors?

Thank you.

Ivan Cachicatari
  • 4,212
  • 2
  • 21
  • 41

2 Answers2

2

You need to use the same keystore to build your app when you test.

Android: keytool error on the command line when locating debug.keystore

or on a Mac:

How to find ~/.android/debug.keystore in Mac OS X for Android?

Copy the debug keystore from one machine to the other. You may want to make a back up if you have multiple projects that you are debugging, but you should probably just migrate to a common key.

Community
  • 1
  • 1
Jim
  • 10,172
  • 1
  • 27
  • 36
0

The apk generated will have a different key therefore it cannot be installed as an update.