“layout renderer failed” error in xamarin

2019-04-24 11:33发布

I have a sample Android project which is working well (can be built and installed on mobile phone). But whenever I double click on any file in the Layout folder in xamarin environment to see the layout in design mode, the following message appears. (my xamarin version is 4.0.13)

I see this question but no answer was provided. Any help will be greatly appreciated.

enter image description here

4条回答
forever°为你锁心
2楼-- · 2019-04-24 11:39

This same error message now appears for a new issue as of Jan 2015.

"layout renderer failed" error in xamarin

The issue is around Xamarin now expecting a 64 bit JDK and using a 32 bit JDK. The fix is to uninstall JDK 1.6 or 1.7 and install 1.8 64 Bit.

查看更多
你好瞎i
3楼-- · 2019-04-24 11:40

Xamarin team have identified an issue with this in 4.0.13 and are working on a fix for it at the moment

Link

Until this is in place, the only way to get the renderer working is to uninstall 4.0.13 and re-install 4.0.12

查看更多
\"骚年 ilove
4楼-- · 2019-04-24 11:42

There is a temporary solution to this. I closed the layout tab, then removed two processes from task manager: MonoDevelop.Projects.Formats.MSBuild.exe and mandroid.exe and I was able to open layout again. But it doesnt fix the problem :>

查看更多
登录 后发表回答