Forum Xamarin.Forms

XAML Previewer for Xamarin.Forms not working on VS2017


How to fix it?:


Best Answer


  • prashantvcprashantvc USXamarin Team Xamurai

    That's rather strange! Could you file a bug at
    with full version information and logs?

  • ANTProANTPro USMember

    I make newbug on bugtrack

  • VenkataSwamyVenkataSwamy INMember ✭✭✭
    edited May 2017

    Hi everyone,
    Please follow steps to resolve the error:

    Step 1: VS 2017 > click on View > Select Other Windows > Select Forms Preview

    Step 2: The project preview needs to be built before preview the application

    Step 3: Android Application preview, be sure that you have the latest Java 1.8 x64 installed from here

    Step 4: install java 1.8 x64 and change to Android JDK path from Visual studio
    Goto Tools Menu> Select Options > Xamarin> Android Setting > change Java Development kit

    Step 5 Restart VS 2017

    Step 6 Now open Forms Preview

    For more information, please visit

  • ANTProANTPro USMember

    I have jdk x64 1.8.0_112. Install new jdk x64 1.8.0_131 - problem not solved :(

  • voidvoid DKBeta ✭✭✭

    I wish they would let us disable the previewer. At best I get a blank page I have to close, at worst it crashes (due to telerik controls) every 2 minutes.

  • GVxGVx USMember ✭✭✭

    Why does Xamarin insist on releasing features that don't work? Management must be keen on getting new stuff in even if it works or not. Just ship it! The Android buttons should be removed, as also stated above, it has NEVER worked.

    Now when I run it, all it does is lock up VS... The whole thing needs to be removed as it does not work.. It can only give Xamarin a bad name if they keep releasing features that do not work....

    A real and proper XAML editor is needed more than anything else they currently have on their road map.... :neutral:

  • EvolutionlabEvolutionlab USMember

    My last attempt with visual studio 2017:

    • Create a blank project with a view containing 1 label.
    • Follow all the steps required (jdk, android compilation, ecc ecc..)
    • Previewer doesnt work, error displayed: "something went wrong, ecc.. ecc..".

    meh... i dont have time for this :(

  • wsyeagerwsyeager Member ✭✭

    Just tried it again with v15.8.1 of vs 2017.

    Still doesn't work.... I agree with you guys above. What a waste. I've wasted almost 3 hours just trying to get this to work. Let them release something that actually functions properly. We need a XAML desginer that can also be enabled to drag and drop objects from a toolbox just like if using it in Android or iOS specific applications.

    This is a joke....

  • zlazozlazo PEMember ✭✭

    I don't have it at all. Anybody knows how to enable it ?

  • zlazozlazo PEMember ✭✭

    By the way if you want to try is the best option out there to see how XAML looks

  • ST.7899ST.7899 USMember ✭✭

    I have installed X.F ( i don't think that is related to the Xamarin Previewer issue but just for the records).

    However it seems that by trying all the suggestions it may be fix it for a while but after a few rebuilds, opening closing other pages in xaml and waiting to see the designer.. you will soon notice that the problem still exists..

    I get this Xamarin Forms Previewer Error

    java.lang.IllegalStateException java.lang.IllegalStateException
    Caused by: java.lang.IllegalStateException: The main Looper has already been prepared.
    at android.os.Looper.prepareMainLooper(
    ... 4 more

  • nick5454nick5454 USUniversity ✭✭✭
    edited March 2019

    Delete this please

Sign In or Register to comment.