title: Invalid Gradle JDK configuration found. Open Gradle Settings
body: <p>I'm trying to integrate Jetpack Compose in my project with Android Studio 4.2 and I am getting the following error in the IDE:</p>
  
  <blockquote>
    <p>Invalid Gradle JDK configuration found. Open Gradle Settings</p>
  </blockquote>
  
  <p>I also checked the settings below: </p>
  
  <ul>
  <li>Android gradle plugin version: 4.2.0-alpha01</li>
  <li>Gradle version: 6.5-rc-1</li>
  </ul>
  
  <p><strong>app/build.gradle:</strong></p>
  
  <pre><code>composeOptions {
          kotlinCompilerVersion "1.3.70-dev-withExperimentalGoogleExtensions-20200424"
          kotlinCompilerExtensionVersion "0.1.0-dev13"
      }
      buildTypes {
          release {
              minifyEnabled false
              proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
          }
      }
      buildFeatures {
          compose true
      }
      compileOptions {
          sourceCompatibility JavaVersion.VERSION_1_8
          targetCompatibility JavaVersion.VERSION_1_8
      }
      kotlinOptions {
          jvmTarget = "1.8"
      }
  </code></pre>
  
  <p>Any idea?</p>