Solution for "cocould not determine Java version from '9. 0.1 '" in Windows Intellij environment, intellijgradle

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.