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
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.