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: Rakesh
Author Info:

Rakesh is a seasoned developer with over 10 years of experience in web and app development, and a deep knowledge of operating systems. Author of insightful How-To articles for Code2care.

Follow him on: X

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