I set my path to my JDK. enter image description here
But i have this message :
Message: System.Exception : Java Development Kit (JDK) not found. Please make sure that it is installed and if it's still not located, please set the JAVA_HOME environment variable to point to the directory.
Searched locations:Windows Registry
[ Source: JAVA_HOME ]
When i try to use this :
public static IApp StartApp(Platform platform)
{
if (platform == Platform.Android)
{
return ConfigureApp.Android
.ApkFile("../JhipsterXamarin/JhipsterXamarin.Android/bin/Debug/com.companyname.jhipsterxamarin.apk")
.StartApp();
}
}
From the shared screenshot, you are using the custom downloaded JDK , not the downloaded JDK from Visual Studio.
Maybe the C:\\Program Files\\Java\\jdk1.8.0_271
can work when Visual Studio debug the project, however not works for UItest.
Therefore, you could have a try with the generated path from Visual Studio:
C:\\Program Files\\Android\\jdk\\microsoft_dist_openjdk_1.8.0.25
Screenshot of my local site:
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.