1
votes

I am not very new to programming and Java (5 months), but I am pretty new to Android Studio on IntelliJ. I do not want to make an app, but I just want to see what it would be like if I did in the future. However, when I make a new Android Studio project in IntelliJ IDEA, this error pops up:

Could not determine Java version using executable /Library/Java/JavaVirtualMachines/jdk-11.jdk/Contents/Home/bin/java.

I have looked at the other questions and answers on the internet, but I just can't really understand them since I am fairly new. I have also tried reinstalling IntelliJ multiple times, but it never worked. How do I fix this error?

1
What IDEA version do you use? - y.bedrov
the newest one. i re-installed it a few days ago. the version is : 2018.3.5 - Eldar Ulanov
Please try to switch to "local gragle distribution" and use Gradle 5 version. - y.bedrov

1 Answers

0
votes

Try below

enter image description here

And change distributionUrl parameter gradle-wrapper.properties file to a newer gradle version in file: "/android/gradle/wrapper/gradle-wrapper.properties", e.g.

distributionUrl=https\://services.gradle.org/distributions/gradle-4.10.1-all.zip

See https://gradle.org/install/