JDK can be downloaded on Android

How do I update the Java Development Kit (JDK) version?

  • 2 minutes to read

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

OverviewOverview

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). Alternatively, you can use the Install preview version of Microsoft Mobile OpenJDK. Alternatively, you can install the Microsoft Mobile OpenJDK Preview. The Microsoft Mobile OpenJDK will eventually replace JDK 8 for Xamarin.Android development.

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

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

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

  3. Run the EXE version and install the Development tools: Run the .exe and install the Development tools:

  4. Open Visual Studio and update the Java Development Kit location so that he is taking on the new JDK Tools> Options> Xamarin> Android Settings> Java Development Kit Location assigns: 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:

Be sure to restart Visual Studio after updating the location.

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

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

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