Share via


Importing an Existing Keystore in Visual Studio

Question

Friday, January 17, 2020 8:29 PM

I'm using the Archive and Distribute functions to create an Ad-Hoc apk in Visual Studio. I am trying to import an existing keystore I have used to sign the Apk with in the past manually. When I try to import the keystore the dialog window displays a yellow window under the input fields with the message 'Importing keystore to C:\Users\AppData\Local\Xamarin\Mono for Android\Keystore\.keystore...'. A red 'X' is displayed at the beginning of the message. This suggests to me that an error has occurred? Yet there is no obvious error in the message. I just can't work out what the problem is, if any! The 'Import' and 'Cancel' buttons are still enabled.

All replies (1)

Saturday, January 18, 2020 2:52 AM

1.To import the keystore file, it requires two passwords: the key password and the keystore password. Please mark sure all the input content is correct.

2.Try to sign the apk manaually. The following steps are involved with signing an APK: * Create a Private Key * Zipalign the APK * Sign the APK

Tutorial: https://docs.microsoft.com/en-us/xamarin/android/deploy-test/signing/keystore-signature?tabs=windows

Similar issue cases: https://forums.xamarin.com/discussion/77998/cant-import-keystore https://github.com/xamarin/xamarin-android/issues/2166 https://stackoverflow.com/questions/39602451/cant-import-an-existing-key-store-into-xamarin-archive-manager