b15
b15

Reputation: 2351

Can't deploy with debug.keystore from another machine

I've switched from android studio to xamarin for an application (game) I've already configured in google play developer console. I've copied and pasted the debug.keystore to C:\Users\my profile\AppData\Local\Xamarin\Mono for Android\ and cleaned the solution (I'm on visual studio 2015). The solution builds fine but the application is never installed to my Genymotion device. I see the following:

Android application is debugging. The application could not be started. Ensure that the application has been installed to the target device and has a launchable activity (MainLauncher = true).

Additionally, check Build->Configuration Manager to ensure this project is set to Deploy for this configuration.

When i revert to the old keystore, clean, and build/deploy it works again. How do I fix this?

Upvotes: 1

Views: 224

Answers (1)

dylansturg
dylansturg

Reputation: 1708

I've found that when the keystore changes, you have to follow a different uninstall process. Try uninstalling the app through the Application Manager. Depending on your version of Android, it's usually somewhere in Settings -> Applications -> Application Manager -> Find the app in the list, select it, uninstall.

For some reason, just using the trash icon to uninstall the app doesn't seem to remove the code signing information. But if you use the Application manager to uninstall, that will remove the code signing information. Then you can build and deploy with a different keystore.

Upvotes: 1

Related Questions