-->

This article illustrates how to update the Java Development Kit (JDK) version on Windows and Mac.

8 Installation of the JDK and the JRE on macOS. This topic includes the following sections. Double-click the JDK 9.pkg icon to start the installation application. The installation application displays the Introduction window. Click Continue. The Installation Type window appears.

Overview

Xamarin.Android uses the Java Development Kit (JDK) to integrate withthe Android SDK for building Android apps and running the Androiddesigner. The latest versions of the Android SDK (API 24 and higher)require JDK 8 (1.8). Alternately, you can install theMicrosoft Mobile OpenJDK Preview.The Microsoft Mobile OpenJDK will eventually replace JDK 8 for Xamarin.Androiddevelopment.

To update to the Microsoft Mobile OpenJDK, seeMicrosoft Mobile OpenJDK Preview.To update to JDK 8, follow these steps:

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

  2. Pick the 64-bit version to allow rendering ofcustom controlsin the Xamarin Android designer:

  3. Tri-backup 6 mac download. Run the .exe and install the Development Tools:

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

Be sure to restart Visual Studio after updating the location.

  1. Cdsoundmaster r2r and tb for mac. Download JDK 8 (1.8) from the Oracle website:

  2. Open the .dmg file and run the .pkg installer:

Upgrade jdk

Mac OS will automatically set the new JDK version as the default byupdating /System/Library/Frameworks/JavaVM.framework/Versions/Current.You can then double-check that the Java SDK (JDK) location is set tothe expected default of /usr under Visual Studio for Mac > Preferences >Projects > SDK Locations > Android > Locations > Java SDK (JDK) Location: