Closed kazurayam closed 10 months ago
I checked IntelliJ IDEA > Preferences > Build, Execution, Deployment > Build Tools > Gradle
I found the JVM for Gradle is set to be JDK8. It's too old!
I changed the IntelliJ IDEA's config to set the Gradle JVM to be JDK17:
I stoped IDEA and restarted it. I re-opend the selenium-webdriver-java project.
In the Build tab, I got the following message
Unsupported Java.
Your build is currently configured to use Java 17.0.8 and Gradle 7.1.
Possible solution:
- Use Java 16 as Gradle JVM: Open Gradle settings
- Upgrade Gradle wrapper to 7.2 version and re-import the project
The messages changed. The Gradle build worked on JDK17. This issue has been resolved.
Thout it shows other message, but I will follow it in another issue.
I cloned out the master branch of https://github.com/kazurayam/selenium-webdriver-java. I just opend it in the IntelliJ IDEA. IntelliJ IDEA showed error messages in the Build tab.
The messages in the Build tab was: