How to fix it?:
It doesn't work at all in Android for me, never has. Only works on basic screen layouts in VS2015. This is well documented on the forums.
That's rather strange! Could you file a bug at https://bugzilla.xamarin.com/newbug
with full version information and logs?
I make newbug on bugtrack
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 http://xamarininterviewquestion.blogspot.in/2017/03/microsoft-launch-visual-studio-2017_12.html
I have jdk x64 1.8.0_112. Install new jdk x64 1.8.0_131 - problem not solved
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.
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....
My last attempt with visual studio 2017:
meh... i dont have time for this
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....
I don't have it at all. Anybody knows how to enable it ?
By the way if you want to try http://www.livexaml.com/ is the best option out there to see how XAML looks
I have installed X.F 18.104.22.1689982 ( 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
Caused by: java.lang.IllegalStateException: The main Looper has already been prepared.
... 4 more
Delete this please
Xamarin Inc., as a wholly-owned Microsoft subsidiary acting as a separate legal entity, adheres to the Microsoft Privacy Statement: Privacy & cookies