invalid gradle jdk configuration found android studio code example
Example 1: android studio invalid gradle jdk configuration found. open gradle settings use jdk from project structure
Delete these generated files:
.idea/gradle.xml
.idea/workspace.xml
then click try again to sync the project.
Example 2: Invalid Gradle JDK configuration found. Open Gradle Settings
Change JDK location
Under Android Studio,
select File > Project Structure > JDK location.
Specify the JDK to the folder of your currently installed JDK. And specify the SDK location as well.