【发布时间】: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