Xamarin Forms 4.1.0:未找到方法:void .ResourceLoadingQuery.set_Instance(object) [英] Xamarin Forms 4.1.0: Method not found: void .ResourceLoadingQuery.set_Instance(object)
问题描述
解决方案
或者只是确保使用Xamarin Forms更新了解决方案中的所有项目.
Or simply make sure that all projects in your solution using Xamarin Forms are updated.
原始问题
从4.0.0.425677升级到Xamarin Forms 4.1.0.555618导致类型解析异常,并在尝试解析类时引发以下错误:
An upgrade to Xamarin Forms 4.1.0.555618 from 4.0.0.425677 is causing a Type Resolution exception and throwing the following error when I try to resolve a class:
Method not found: void .ResourceLoadingQuery.set_Instance(object)
在4.0.0.xxxx版本中不会发生这种情况.
This doesn't happen with version 4.0.0.xxxx.
EDIT这仅在Android(版本9.0/Pie)上发生,并且在iOS上运行良好
EDIT This only happens on Android (version 9.0/Pie), and works fine on iOS
如果有帮助,我正在使用 TinyIoCContainer 来解决所有依赖关系.
If it helps I'm using TinyIoCContainer to resolve any dependencies.
推荐答案
就我而言,我忘记了在Android项目中更新Xamarin.Forms.该错误已在更新后修复.
In my case, I forgot update Xamarin.Forms in Android project. The bug fixed after update.
这篇关于Xamarin Forms 4.1.0:未找到方法:void .ResourceLoadingQuery.set_Instance(object)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!