Invalid Gradle JDK configuration found

6.9k views Asked by At

I have this mistake for gradle im Android Studio.

Error:Invalid Gradle JDK configuration found. Open Gradle Settings Platform SDK does not point to valid JDK (C:/Program Files/Java/jdk1.8.0_31)

This is my JAVA_HOME: C:\Program Files\Java\jdk1.8.0_45

Why it is looking for older version of java?

2

There are 2 answers

0
josedlujan On

Try to use Java 6 or 7, That will fix it.

0
Green On

Follow these direction:

In Android Studio: select File > Project Structure > JDK location. Specify the JDK to the folder of your currently installed JDK. And specify the SDK location as well.

Make sure your JDK/SDK are up to date..