Unable to Import Existing Keystore

Rob Ward 1 Reputation point
2022-02-24T21:29:11.91+00:00

Trying to distrubute/sign the apk and need to reimport my keystore. It doesn't show up anymore, not sure if it disappears because of the windows 11 update or visual studios updates, on 16.11.10. When I try to import it I get "There was an error import the key"

at Xamarin.AndroidTools.PublicationUtilities.KeyManagement.<>c__DisplayClass13_0.<ImportKeyAsync>b__0(Task1 t) in D:\a\_work\1\s\External\androidtools\Xamarin.AndroidTools\PublicationUtilities\KeyManagement.cs:line 313 at System.Threading.Tasks.ContinuationResultTaskFromResultTask2.InnerInvoke()
at System.Threading.Tasks.Task.Execute()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Xamarin.VisualStudio.Publishing.Presentation.ViewModels.AndroidImportKeyViewModel.<Import>d__48.MoveNext() in D:\a_work\1\s\src\Core\VisualStudio.Publishing\Presentation\ViewModels\AndroidImportKeyViewModel.cs:line 133

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,348 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Rob Ward 1 Reputation point
    2022-02-28T16:34:35.3+00:00

    Existing keystore doesn't seem to like my password. Ended up having to go back to an old jks keyfile that was converted years ago, it had a password with an @ symbol in it so changed the password on it and renamed the file to .keystore and it finally worked. Thanks for pointing me in the right direction.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.