简体   繁体   中英

Visual Studio (xamarin) error "Xamarin.Android for Visual Studio requires Java Development Kit (JDK). Please click here to configure." 0

I was trying to download the Android emulator from visual studio to xamarin but it appears this error "Xamarin.Android for Visual Studio requires Java Development Kit (JDK). Please click here to configure". I tried to repair the instalationon Android SDK Manager and install other SDK but the error continues. I'll really be apreaciate if you help me. Error on visual studio

You can try to install android JDK manually.

Xamarin.Android uses the Java Development Kit (JDK) to integrate with the Android SDK for building Android apps and running the Android designer. The latest versions of the Android SDK (API 24 and higher) require JDK 8 (1.8).

The steps are as follows:

1.Download JDK 8 (1.8) from the Oracle website :

在此处输入图像描述

  1. Pick the 64-bit version to allow rendering of custom controls in the Xamarin Android designer:

在此处输入图像描述

3.Run the.exe and install the Development Tools.

4.Open Visual Studio and update the Java Development Kit Location to point to the new JDK under Tools > Options > Xamarin > Android Settings > Java Development Kit Location.

For more information, you can check: https://learn.microsoft.com/en-us/xamarin/android/troubleshooting/questions/update-jdk?tabs=windows .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM