Solution for "cocould not determine Java version from '9. 0.1 '" in Windows Intellij environment, intellijgradle
When I first attempted to import the Gradle project to Java spring, the following error was reported:
Gradle complete project refresh failed Error: cocould not determine java version from 9.0.1.
Refer to the settings in this http://www.ddiinnxx.com/solving-not-determine-java-version-9-0-1-gradle-intellij-macosx/
However, this is macosx, but the steps are similar.
Step 1: Check the JDK version
Operation steps of the English menu (File-> Project Structure-> Project). The Chinese character is "File", "Project Structure", and "Project"
Then you need to change it to the required version, 9.0.1. You should set the environment variable in advance.
Java official Installation Guide, find and modify
At this time, gradle still reports an error. You need to download Versions later than 4.3.
Gradle Installation Guide. Scoop is a package management tool similar to Homebrew in Windows.
$ Scoop install gradle
Menu operations (View-> Tool Windows-> Gradle), Chinese "View"-> "Tool window"-> "Gradle"
Note: here you need to modify the Gradle home address to the Gradle path later than version 4.3, similar to/gralde-4.3, which contains/bin,/lib and other subdirectories