Antony Ng
Antony Ng

Reputation: 797

Will different machine installed Android app (via Android Studio) get a different signature?

I have an old app that I've written for personal use only, and never made as release to the Play Store. I installed it to my phone via Android Studio using run app command.

Many years later I want to modify the app, I try to pick up the app and run it again, this time using a different computer. I get the error saying:

"Installation failed since the device already has an application with the same package but a different signature. In order to proceed, you have to uninstall the existing application."

I definitely don't want to uninstall my app, this would cause me lost all the data I've entered to it. So I want to ask that isn't the debug keystore used by Android Studio to install app on device would create app of the same signature? Why it would be different? Is a different machine caused this issue? Thank you very much!

Upvotes: 2

Views: 340

Answers (1)

CodeChimp
CodeChimp

Reputation: 4835

It sounds like you were using your debug certificate when you originally installed the app. This is unique to each machine when you install Android Studio.

You can copy the debug certificate from your old machine to your new one.

The file is located in your [userhome]\.android\debug.keystore

Upvotes: 4

Related Questions