Share via


There was an error importing the key

Question

Friday, August 14, 2020 9:52 AM

Trying to import a keystore file in to VS2019. Worked previously on another installation however when I try to import I get the following error:

at Xamarin.AndroidTools.PublicationUtilities.KeyManagement.<>c

DisplayClass130.b0(Task1 t) 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.d_48.MoveNext() in C:\A_work\80\s\src\Core\VisualStudio.Publishing\Presentation\ViewModels\AndroidImportKeyViewModel.cs:line 133

Can anyone help?

All replies (2)

Friday, August 14, 2020 1:06 PM âś…Answered

  1. The error is pasted in my original post. Both passwords entered correctly
  2. Don't use DEX

Friday error - was using the wrong file. Unfortunately the cryptic error was not very helpful. All sorted now. Shame I can't delete this post.


Friday, August 14, 2020 1:01 PM

Trying to import a keystore file in to VS2019 .. when I try to import I get the following error 1.What error did you encounter? Please post the related error info. 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.Did you enable the multi dex option? If so, try to disable that. Refer to: https://forums.xamarin.com/profile/REJAH