Fix - Error:Invalid Gradle JDK configuration found (Android Studio)


Error:Invalid Gradle JDK configuration found.

Platform SDK does not point to valid `JDK`

Consult IDE log for more details (Help | Show Log)

If you get the above error when you try to run gradle/gradlew tasks or commands, you need to check whether you have set the correct JDK version for Gradle Plugin.

You can do that by following the below steps (assuming you are using IntelliJ).

  1. Go to File -> Project Structure..
  2. Now select Project from sidebar
  3. Now make sure you have set the right version for - "Android Gradle Project Version"
  4. Also make sure the "Gradle Version" drop-down is set correctly.
Validate Android Gradle Version

Facing issues? Have Questions? Post them here! I am happy to answer!

Author Info:

Rakesh (He/Him) has over 14+ years of experience in Web and Application development. He is the author of insightful How-To articles for Code2care.

Follow him on: X

You can also reach out to him via e-mail: rakesh@code2care.org

Copyright © Code2care 2024 | Privacy Policy | About Us | Contact Us | Sitemap