Xamarin.Auth AccountStore - 密钥库未初始化



我已经让这个 Xamarin.Auth AccountStore 在我的应用中工作了一段时间,但后来决定对一些 Nuget 包和目标 Android 版本>_ 进行一些更新<</p>

我现在不知道出了什么问题以及如何让它再次工作,这是例外:

Java.Security.KeyStoreException: KeyStore was not initialized

代码非常简单,如下所示:

var accountStore = AccountStore.Create(Android.App.Application.Context);
var accounts = accountStore.FindAccountsForService(providerName);

第二行引发异常。这是在Android项目中,从PCL DependencyService调用。它已经以这种方式工作了一段时间,我想其中一个包的版本更新发生了一些变化,但我不知道是什么,有什么想法吗?

尝试修复您的Visual Studio安装。这为我们的项目带来了诀窍。我们和你一样有同样的问题。

最新更新