【问题标题】:Xamarin.Auth AccountStore - KeyStore was not initializedXamarin.Auth AccountStore - KeyStore 未初始化
【发布时间】:2018-08-24 14:17:55
【问题描述】:

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

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

Java.Security.KeyStoreException: KeyStore was not initialized

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

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

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

【问题讨论】:

    标签: xamarin.forms xamarin.auth


    【解决方案1】:

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

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2017-12-04
      • 2023-04-03
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2021-11-11
      • 2021-12-14
      • 2013-06-26
      相关资源
      最近更新 更多