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
-


Have Questions? Post them here!


Top Hashtags: