Xamarin.Auth.AccountStore.Create
问题描述:
我试图使用本指南Xamarin.Forms DependencyService:Xamarin.Auth.AccountStore.Create
https://developer.xamarin.com/recipes/cross-platform/xamarin-forms/general/store-credentials/
当过我尝试从我的PCL项目调用一个方法(例如说DoCredentialsExist()(检查GitHub的代码示例)我得到这个错误:
system.missingMethodException而:方法“Xamarin.Auth.AccountStore.Create”未找到
我不禁觉得有必须是我需要做的一些设置或der为他们的Android密钥库正常工作?
答
我能够解决这个错误,但我无法重建哪一步完全解决了我的问题。但这些都是我做的步骤:
步骤:
- 建造在控制台我的解决方案槽的MSBuild和第一清洗一切:
msbuild /t:clean
,然后msbuild
→我的控制台了一些错误和解决这些 - 将我的Xamarin.Auth包更新为Android和PCL项目中的最新版本。
- 更新Xamarin.Forms到最新的稳定版本
- 删除了所有项目的OBJ/bin文件夹中,然后重建
您是如何安装的xamarin形式的OAuth? [无法安装组件问题](https://github.com/Bigsby/Xamarin.Forms.OAuth/issues/9)仍然存在。 –
你有没有解决这个问题? –