Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Connection to the layout renderer failed. This may be caused by misconfiguration of Java

Connection to the layout rendere failed. This may be caused by misconfiguration of Java

When i tried to run Xamarin and start developing app, opening layout files gives me the error:

enter image description here

Xamarin misconfiguration of java

like image 350
Anass Avatar asked Dec 08 '22 22:12

Anass


2 Answers

Gone through a few articles and I found a solution as most users said that it worked for them.

Anyway, try this:

  1. Uninstall Java JDK 1.6 and Java JDK 1.7 using the "Programs and Features" control panel. On Windows, Xamarin will automatically pick version 1.6 or 1.7 instead of version 1.8 if either of those older versions are installed.
  2. Install the Java JDK 1.8 (64-bit)
like image 151
Raktim Biswas Avatar answered Dec 10 '22 12:12

Raktim Biswas


I just had this issue with a new Visual Studio 2017. VS was referencing the 64bit JDK instead of the 32bit one.

Just go to

Tools -> Options -> Xamarin -> Android Settings

and change to point to the x86 JDK which is in

Program Files (x86)\Java 

rather than

Program Files\Java.
like image 36
user1745053 Avatar answered Dec 10 '22 11:12

user1745053