Home > Back-end >  vs2019 - Xamarin: loses path settings of "Java Development Kit Location"
vs2019 - Xamarin: loses path settings of "Java Development Kit Location"

Time:12-16

I do a very simple thing.

I go to Tools -> Options -> Xamarin> Android Settings and I change the "Java Development Kit Location" path. I press ok.

I compile the project and the option is used correctly.

I go to Tools -> Options -> Xamarin> Android Settings and the path is correct.

I restart VS, I go to Tools -> Options -> Xamarin> Android Settings and the path is wrong, it is the previous one.

Visual studio version used: Microsoft Visual Studio Community 2019 Version 16.11.7

happens to someone else?

is it a bug?

thanks

CodePudding user response:

For the error with java development kit location, you could try the stpes below.

  1. Install the latest JDK 8 that's available from the Oracle Java SE Development Kit 8 Downloads webpage. https://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html
  2. Follow the instructions in the error message to manually point your Visual Studio instance to the location of your new JDK.

For the best mobile development experience, we encourage you to update to the latest Visual Studio version to keep up with the latest changes in iOS and Android development.

If you still want to use the old version and could not fix the error with the stpes above. You could try to repair the Visual Studio.

  • Related