Connection to the layout renderer failed. This may

2019-06-23 22:04发布

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

6条回答
混吃等死
2楼-- · 2019-06-23 22:10

uninstall xamarin, android sdk and all java JDK after reinstall xamarin installer will fix this headache

查看更多
Evening l夕情丶
3楼-- · 2019-06-23 22:12

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.
查看更多
可以哭但决不认输i
4楼-- · 2019-06-23 22:19

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)
查看更多
甜甜的少女心
5楼-- · 2019-06-23 22:19

Check your Java installation to ensure that mets Xamarin's requirements. Following the information below to ensure that at least Java 1.7 is properly installed.

Note: If 1.7 is installed correctly and in the correct location and it is still not working, you can try upgrading to Java 1.8 as that appears to have solved this problem on others setups.


Installing the Java SDK (JDK)

It is essential to install the 32-bit version of the Java JDK even if you're using 64-bit Windows. It is also important that v1.7 of the Java JDK is installed (although it is fine to have 1.8 or newer installed at the same time).

It is recommend that the Java JDK is placed in the directory C:\Program Files (x86)\Java. This is the default location, and is where your IDE will check to see if it is installed.


http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html

enter image description here

查看更多
不美不萌又怎样
6楼-- · 2019-06-23 22:19

Upgrade Android SDK. You can do this by downloading the recent version. If you already have installed Android Studio, the Android SDK will be installed. So after Downloading copy the tools folder and paste it to

c:\users\{your user name}\AppData\Local\Android\sdk
查看更多
成全新的幸福
7楼-- · 2019-06-23 22:24

Simply update your Xamarin Studio. I got mine fixed by doing this

查看更多
登录 后发表回答