【发布时间】:2016-06-18 03:56:51
【问题描述】:
我在使用 WebView 和本地 html 基本 url 的 Xamarin.forms 项目中遇到此错误:
加载程序集时出现异常:System.IO.FileNotFoundException: 无法加载程序集 'System.Drawing,版本 = 2.0.0.0, 文化=中性,PublicKeyToken=b03f5f7f11d50a3a'。也许它没有 存在于 Mono for Android 配置文件中?名词定义: 'System.Drawing.dll' à Xamarin.Android.Tuner.DirectoryAssemblyResolver.Resolve(AssemblyNameReference 参考,ReaderParameters 参数)à Xamarin.Android.Tasks.ResolveAssemblies.AddAssemblyReferences(ICollection`1 程序集、AssemblyDefinition 程序集、布尔顶层)à Xamarin.Android.Tasks.ResolveAssemblies.Execute() Almicantarat.Droid
我读到: System.IO.FileNotFoundException: Could not load assembly System.Web in Mono for Android 但我不知道我应该编译哪个客户端的源代码。
我读到: Could not load file or assembly 'System.Drawing, Version=4.0.0.0 但在我的项目中,没有引用 System.Drawing !!
查看我的参考资料: my android project references
【问题讨论】:
-
最后在mono.android中找到了system.drawing的引用。出了什么问题?我应该自己编译 mono.android 吗?我在哪里可以找到它? Xamarin 是否提供它?
标签: android-webview xamarin.forms