I found a solution. I tried to change JAVA_HOME path as "C:\Program Files\Android\jdk\jdk-8.0.302.8-hotspot" from environment variables (user variables) as I said above. But I didn't change system variables. I also added "C:\Program Files\Android\jdk\jdk-8.0.302.8-hotspot\bin" to system variables as "Path". It worked.
"JAVA_HOME is set to an invalid directory" error in Xamarin Android UITest
Hi,
I have Xamarin.UITests for ios and android. And I run its in two devices as async with command line on the androids.
(with this command: dotnet "C:\Users\PCName\Desktop\AppName\RunMobileTest\bin\Debug\netcoreapp2.2\RunMobileTest.dll")
I run it about a month ago with no problem. But when I run now, it returns this error:
I searched this, but I couldn't any information.
Additionally I looked to the "C:\Program Files\Android\jdk" location, but there is no folder and file named "microsoft_dist_openjdk_1.8.0.25". I can find only a folder named "jdk-8.0.302.8-hotspot"
I try to change JAVA_HOME path as "C:\Program Files\Android\jdk\jdk-8.0.302.8-hotspot" and "C:\Program Files\Java\jdk1.8.0_201" from environment variables. But none of them didn't work.
What can I do?
Thanks in advance.