Xamarin 4.0.13 布局渲染器失败

Posted

技术标签:

【中文标题】Xamarin 4.0.13 布局渲染器失败【英文标题】:Xamarin 4.0.13 Layout Renderer failed 【发布时间】:2013-10-20 22:13:30 【问题描述】:

更新到 4.0.13 后,我收到错误“连接到布局渲染器失败。这可能是由于 Java 配置错误。请关闭并重新打开文件”。这是错误日志:

Error: Could not find or load main class Files\android\android-sdk\tools\lib\ant-tasks.jar;C:\Program
ERROR [2013-10-13 10:47:56Z]: Connection failed
System.Exception: Java process failed to start
   at Xamarin.AndroidDesigner.JavaProcessConnection.DoConnect()
ERROR [2013-10-13 10:47:58Z]: Could not update jumplists
System.InvalidOperationException: The file type is not registered with this application.
   at Microsoft.WindowsAPICodePack.Taskbar.JumpList.AppendCustomCategories()
   at Microsoft.WindowsAPICodePack.Taskbar.JumpList.Refresh()
   at MonoDevelop.Platform.JumpList.UpdateJumpList()
   at MonoDevelop.Platform.JumpList.OnUpdateTimerEllapsed(Object sender, EventArgs args)

Xamarin 应该在发布更新包之前仔细测试。我希望我没有更新到 4.0.13。

【问题讨论】:

解决方案是重新安装位于 C:\Users[Your User name]\AppData\Local\XamarinStudio-4.0\Cache\TempDownload 的 4.0.12 更新包。 我遇到了同样的问题,但没有旧的更新包...那我现在该怎么办? 您可以从这里下载:download.xamarin.com/studio/Windows/XamarinStudio-4.0.12-3.msi "layout renderer failed" error in xamarin的可能重复 如果您在 2015 年初遇到此问题,解决方案似乎是卸载 1.8 之前的 JDK 并安装 JDK 1.8 64 位。 forums.xamarin.com/discussion/30818/…***.com/questions/19426993/… 【参考方案1】:

我认为这已解决。对我来说,我一直随机收到这个错误,但如果你遇到它,只需从 Visual Studio 打开 android sdk 管理器 工具 > ANDROID > Android SDK 管理器

【讨论】:

然后呢?打开Android SDK Manager后,我该怎么办?

以上是关于Xamarin 4.0.13 布局渲染器失败的主要内容,如果未能解决你的问题,请参考以下文章

xamarin.forms 从自定义渲染器访问 viewmodel 属性

Xamarin Forms 渲染器未响应事件更改

MAUI 移植 Xamarin.Forms 自定义渲染器

Xamarin.Forms MasterDetailPage 自定义渲染器

Xamarin.Forms 中的 Droid 自定义选取器渲染器出错

Xamarin.iOS 自定义渲染器调用 SetNativeControl 的性能很慢