Xamarin - Disconnected from Layout Viewer

I just downloaded xamarin studio. I get the error "disconnected from the layout viewer, please close the file and try again" whenever I open axml in the layout folder. I can view the source, but I cannot go to the design tab to add controls. Closing feed does not work.

I'm not sure how to find which version of xamarin.android I am using, but I just downloaded last night. When I go to the SDK manager, he tells me that my Android SDK Tools is version 23.0.4.

I found this old thread in the same thread. I tried to rename my tool folder and downgrade, but that didn't help either. I was told that I need tools at least version 22.

http://forums.xamarin.com/discussion/14344/disconnected-from-layout-renderer-error-after-updating-android-sdk-tools-to-version-22-6

I tried uninstalling Xamarin Studio and reinstalling, and this did not help. I have Visual Studio 2013 with update 3 installed. But then I also tried installing Xamarin Studio on another laptop with Visual Studio 2012 and got the same problem.

Note. This error is displayed in both Visual Studio and Xamarin Studio.

I really hope I can solve this, as I am evaluating Xamarin for 2 companies. Any help is appreciated.

-Randy

+5
source share
3 answers

The solution is here: http://forums.xamarin.com/discussion/comment/51784/#Comment_51784 Only this time you need to downgrade from 23.0.4 to 23.0.2. Just found it the hard way.

Greetings

+6
source

Thank you, Balint! You made my weekend !!! Here is a direct link to the version of the tools that works.

http://dl-ssl.google.com/android/repository/tools_r23.2-windows.zip

+1
source

I recently had the same problem when trying to open main.xaml in Xamarin Studio for Mac OS X. Here are the steps I took to solve the problem:

  • Open the Android SDK Manager in Xamarin Studio and remove the Android SDK.
  • Download the SDK Tools from [ https://developer.android.com/sdk/index.html?hl=i] . Revision 23.0.2.
  • Make sure the downloaded SDK is unpacked in the path / Users / username / Library / Developer / Xamarin / android -sdk-macosx
  • Then I launched the SDK manager from the terminal using cd library / developer / xamarin / android-sdk-macosx / tools. / Android
  • When the SDK starts, make sure that the Android SDK Tools is not selected, otherwise it will update it to 23.0.5, which, apparently, will be broken.
  • After the SDK Manager updates and installs all the packages, re-open Xamarin Studio and go to Settings โ†’ SDK Locations โ†’ Android and select the path for the Android SDK.

After completing these steps, I was able to successfully open the main.xaml files for Android on OS X.

0
source

Source: https://habr.com/ru/post/1204416/


All Articles