I am currently experiencing an issue with Visual Studio 2022 (Happens on 2019 as well), whenever I create a new Xamarin project, I get these errors.
When I try to configure the existing JDK installation to point to another JDK it does not work. Using the default installed OpenJdk does not work either
Here I am trying to point it to the exisiting JDK that was installed along Visual Studio. I also tried jdk 8 and openjdk 11 13.8.1 . I tried changing the JAVA_HOME to point to the appropriate JDK as well, but to no avail.
Under Tools -> Options -> Xamarin, I have this
I am unable to do anything with the "Java Development Kit Location", if I try to point it to any JDK location it will tell me "Cannot find Java Development Kit files in specified path"
The android SDK location points to the SDK that VS installed during the setup.
I have on several occasions tried uninstalling everything related to VS on my computer, but it still did not work
I have tried (not in order):
Any suggestions on how to fix this?
Check this guide about setting android sdk on vs https://docs.microsoft.com/en-us/xamarin/android/get-started/installation/android-sdk?tabs=windows
And here is the guide about updating jdk in vs https://docs.microsoft.com/en-us/xamarin/android/troubleshooting/questions/update-jdk?tabs=windows
If you done both and nothing changed you can report the issue as following shows:
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.