Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

vs2019 - Xamarin: loses path settings of "Java Development Kit Location"

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

like image 784
Ricko.. Avatar asked Oct 27 '25 13:10

Ricko..


1 Answers

I faced a similar issue when updating visual studio 2019 from version 16.3 to 16.11 while working on a react native project, somehow my jdk installation got corrupted during or after installation. Initiating a repair it from the VS SDK manager did not work and I later found out that my jdk location was changed from:

C:\Program Files\Android\jdk\microsoft_dist_openjdk_1.8.0.25

to

C:\Program Files\Eclipse Foundation\jdk-8.0.302.8-hotspot

I updated the JAVA_HOME env variable to point to the new location then clean rebuild and everything is back to normal.

Hope this helps.

like image 111
Anass Avatar answered Oct 30 '25 03:10

Anass



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!