Search code examples
android-studiosignature

Android Studio refuses to install app because of signature


I have Android Studio 4.1.3, and today I updated my phone to Android 11.

I open my Android Studio, an app, and when I try to install the app into the phone with studio it tells me:

The device already has an application with the same package but a different signature.
In order to proceed, you will have to uninstall the existing application

WARNING: Uninstalling will remove the application data!

Do you want to uninstall the existing application?

My app strongly uses External storage, where my users have tens of GBs of data. They CANNOT uninstall their apps!

Why is this happening, what signature is studio talking about, and how can I fix this?

Could this be a problem with my #HOME/.android folder? I was messing with it...


Solution

  • I restored my $HOME/.android folder with an old backup, and everything works as expected. Probably I messed up or removed my original signature file.