Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

"layout renderer failed" error in xamarin

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

like image 967
Hossein Narimani Rad Avatar asked Oct 17 '13 12:10

Hossein Narimani Rad


3 Answers

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

like image 164
Pat Kelly Avatar answered Sep 30 '22 12:09

Pat Kelly


Known bug(https://bugzilla.xamarin.com/show_bug.cgi?id=18193). Solution here: http://forums.xamarin.com/discussion/14344/disconnected-from-layout-renderer-error-after-updating-android-sdk-tools-to-version-22-6

like image 42
Iyas Avatar answered Sep 30 '22 12:09

Iyas


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.

like image 38
AlexC Avatar answered Sep 30 '22 13:09

AlexC