Forum Visual Studio

Initial install and JDK problems

meirrotfleischmeirrotfleisch USMember ✭✭✭

Hi

I installed VS community 2019 on a new computer and tried to create a new project. I got many errors regarding versions ofemulator etc which i managed to solve however I still get an error

Building with JDK version 15.0.1 is not supported. Please install JDK version 11.0. See https://aka.ms/xamarin/jdk9-errors Virtual.Android

I went to the website but am not able to find where to download version "11" ??

Would appreciate help

Regards

Tagged:

Best Answer

  • jezhjezh Member, Xamarin Team Xamurai
    Accepted Answer

    You can now use Microsoft's version of OpenJDK to avoid using a system installed version of Java. This is strictly used by Xamarin.Android for the MSBuild processes and not any "normal" Java development.

    Beginning with Visual Studio 15.9 and Visual Studio for Mac 7.7, Visual Studio Tools for Xamarin has moved from Oracle’s JDK to a lightweight version of the OpenJDK that is intended solely for Android development. This is a required migration as Oracle is ending support for commercial distribution of JDK 8 in 2019, and JDK 8 is a required dependency for all Android development.

    The benefits of this move are:

    • You will always have an OpenJDK version that works for Android development.

    • Downloading Oracle's JDK 9 or greater won’t affect the development experience.

    • Reduced download size and footprint.

    • No more issues with 3rd party servers and installers.

    And the mobile OpenJDK distribution is automatically installed for you if you select the Android SDK packages in the Visual Studio installer on Windows.

    For more details, you can check: https://docs.microsoft.com/en-us/xamarin/android/get-started/installation/openjdk


    Xamarin forums are migrating to a new home on Microsoft Q&A!
    We invite you to post new questions in the Xamarin forums’ new home on Microsoft Q&A!
    For more information, please refer to this sticky post.

Answers

  • jezhjezh Member, Xamarin Team Xamurai
    Accepted Answer

    You can now use Microsoft's version of OpenJDK to avoid using a system installed version of Java. This is strictly used by Xamarin.Android for the MSBuild processes and not any "normal" Java development.

    Beginning with Visual Studio 15.9 and Visual Studio for Mac 7.7, Visual Studio Tools for Xamarin has moved from Oracle’s JDK to a lightweight version of the OpenJDK that is intended solely for Android development. This is a required migration as Oracle is ending support for commercial distribution of JDK 8 in 2019, and JDK 8 is a required dependency for all Android development.

    The benefits of this move are:

    • You will always have an OpenJDK version that works for Android development.

    • Downloading Oracle's JDK 9 or greater won’t affect the development experience.

    • Reduced download size and footprint.

    • No more issues with 3rd party servers and installers.

    And the mobile OpenJDK distribution is automatically installed for you if you select the Android SDK packages in the Visual Studio installer on Windows.

    For more details, you can check: https://docs.microsoft.com/en-us/xamarin/android/get-started/installation/openjdk


    Xamarin forums are migrating to a new home on Microsoft Q&A!
    We invite you to post new questions in the Xamarin forums’ new home on Microsoft Q&A!
    For more information, please refer to this sticky post.

Sign In or Register to comment.