Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to run xamarin forms designer?

How to run xamarin forms designer?

After startup, an error pops up:

The previewer requires a 64-bit version of Oracle Java JDK 8 (1.8) or higher. Please install it and then set the Java JDK location in the Xamarin Studio or Visual Studio preferences.

But I'm using version 1.8.

How to fix?

enter image description here enter image description here

like image 261
VINET Avatar asked Mar 21 '17 19:03

VINET


People also ask

Does Xamarin forms have a designer?

The Xamarin. Android Designer allows developers to create and modify declarative layouts visually, without requiring hand-editing of XML files. The Designer also provides real-time feedback that lets the developer evaluate UI changes without having to redeploy the application to a device or to an emulator.

How do I view designers in Xamarin?

You can open the XAML Previewer by clicking the arrows on the split view pane. If you want to change the default split view behavior, use the Tools > Options > Xamarin > Xamarin. Forms XAML Previewer dialog. In this dialog, you can select the default document view and the split orientation.

How do I run Xamarin project in Visual Studio?

Start Visual Studio. Click File > New > Project to create a new project. In the new project dialog, select the Mobile App (Xamarin. Forms) template and click Next.


1 Answers

You aren't using the 64-bit install of JDK 1.8, you're using the 32-bit.

Install the 64-bit version and change that path you highlighted from:

C:\Program Files (x86)\Java\jdk1.8.0_101

to

C:\Program Files\Java\jdk1.8.0_101

like image 182
SuavePirate Avatar answered Oct 11 '22 12:10

SuavePirate