How do I update the Java Development Kit (JDK) version?
This article illustrates how to update the Java Development Kit (JDK) version on Windows and Mac.
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). If you have not yet updated to JDK 8, follow these steps to install and enable it:
Download JDK 8 (1.8) from the Oracle website:
Pick the 64-bit version to allow rendering of custom controls in the Xamarin Android designer:
Run the .exe and install the Development Tools:
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 > Change:
Be sure to restart Visual Studio after updating the location.