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?
Try to use Java 6 or 7, That will fix it.