Fix: Invalid Gradle JDK configuration found. Could not find the required JavaSDK


Error:
Invalid Gradle JDK configuration found. Could not find the required JavaSDK.
Open Gradle Settings
Change JDK location
Invalid Gradle JDK configuration found

To resolve this issue, follow these steps:

  1. Click on "Open Gradle Settings".
  2. This should open up the settings for Gradle.
  3. In the Gradle settings, look for the dropdown menu labeled "Gradle JVM".
  4. Select a JVM that you have installed on your device from this dropdown menu.

Open the build.gradle file and do a refresh, once done, go to Menu: Build -> Build Project

By following these steps, you should be able to resolve the Gradle build error and continue working with the project in IntelliJ IDEA.

Gradle JVM Setting IntelliJ
-

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


Author Info:

Rakesh (He/Him) 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

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

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