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).
- Go to File -> Project Structure..
- Now select Project from sidebar
- Now make sure you have set the right version for - "Android Gradle Project Version"
- Also make sure the "Gradle Version" drop-down is set correctly.

-
Facing issues? Have Questions? Post them here! I am happy to answer!
More Posts related to Gradle,
- Task is ambiguous in root project gradle-examples. Candidates are: myTask1, myTask2
- How to create Gradle Multi-Project in IntelliJ
- Find installed Gradle version command
- Adding Jackson dependency to Java Gradle Project
- Gradle FAILURE: Build failed with an exception - Task not found in root project
- Create a Gradle Java Project in VS Code
- Generate Project Dependency tree using Gradle Command
- Fix: Spring Boot + IntelliJ + Gradle : Unsupported class file major version 64 Error
- Fix: Unsupported Java. Your build is currently configured to use Java 17.0.5 and Gradle 7.1.
- Run IntelliJ Java main method without Gradle build
- Fix: Deprecated Gradle features were used in this build, making it incompatible with Gradle
- Installing Gradle on macOS - Gradle Tutorial
- Fix: Invalid Gradle JDK configuration found. Could not find the required JavaSDK
- How to Clear Gradle Cache on Mac
- How to run Gradle build in offline mode
- Install Gradle VS Code for Java Projects
- How to add maven central repository in build.gradle
More Posts:
- Java C# foreach loop equivalent in Python Programming - Python
- Remove AirDrop Icon from macOS Menu Bar - MacOS
- How to check if a variable is set in Bash Script or Not - Bash
- Vertical align two div's in Bootstrap [HTML CSS] - Bootstrap
- Amp Hello World Example - AMP
- What is exit(0), exit(1) ... exit(8) codes in Python Programming - Python
- Java 8: Convert Stream to Array - Java
- [Microsoft Teams 4c7] Modern authentication failed here, but you'll still be able to sign in. Your status code is 4c7 error - Microsoft