Xamarin VS2015 designer not working

安稳与你 提交于 2019-11-29 12:10:22

I found a solution, i'm using windows 10 on my machine (64-bit Windows), so instead of downgrading to java JDK 1.7, make sure to install the latest Xamarin updates since updates contains a lot of fixes.

To check for updates follow the link below. Note: check for update more than once till you receive "Xamarin is up to date!"

Go to: Debug > Options

https://developer.xamarin.com/recipes/cross-platform/ide/change_updates_channel/#Change_the_Updates_Channel_in_Visual_Studio_2015_and_earlier

It seems that i finally found a solution and would like to share the answer.

Xamarin is a little bit sensitive when it comes the Java JDK version. As found on the website we should have always Java JDK 1.7 but only 32-bit version(even if you're using 64-bit Windows). Here is the link to their page

https://developer.xamarin.com/guides/android/getting_started/installation/windows/manual_installation/

So in my case i tried many solutions and here is what worked:

  1. Uninstall all java and java sdk through the control panel>uninstall programs
  2. Install only java sdk 1.7 32 bit(Java SE Development Kit 7u79) and java 1.7(installed from the sdk installer)
  3. Close Visual Studio
  4. Open Android SDK manager from windows
  5. Delete Android SDK Tools and Android SDK Platform-tools
  6. Install Android SDK Tools and Android SDK Platform-tools
  7. Close Android SDK Manager(the application itself will ask for a restart)
  8. Add the Java_Home and JDK_Home enviromental variables as shown below(I think that Java_Home can be avoided though but haven't tested it yet)

  9. Start visual studio. Your layout should load without any problems;

PS: While trying this solution more than 3 times in order to verify it, one time i had to restart my computer.

Hope this is usefull:)

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!