Could not determine Java version using executable C:\Program Files\Java\jdk-10.0.1\bin\java.exe

后端 未结 10 897
野的像风
野的像风 2020-12-23 16:23

Could not determine Java version using executable C:\\Program Files\\Java\\jdk-10.0.1\\bin\\java.exe.

This error appeared when I tried to create a new project in Int

10条回答
  •  别那么骄傲
    2020-12-23 17:02

    Even if you're using Linux the solution remains the same.

    Inside the root folder of your Project(Working Directory) >>

    gradle/wrapper/
    

    There's a file named >>

    gradle-wrapper.properties
    

    Change the distributionUrl line (Outdated Version):

    distributionUrl=https\://services.gradle.org/distributions/gradle-3.3-bin.zip
    

    To the following distributionUrl (Compatible/Correct Version):

    distributionUrl=https\://services.gradle.org/distributions/gradle-4.8-bin.zip 
    

    Don't forget to configure IntelliJ IDEA Settings to use the Gradle-Wrapper Configurations.

提交回复
热议问题