title: There is an error when importing the Room library
body: <p><strong>Errors only occur when importing room libraries.</strong></p>
  <p>There was no problem when importing kapt and ksp, but An error occurs only when you add a room library</p>
  <p>&quot;https://developer.android.com/training/data-storage/room?hl=ko.&quot; I followed what was said here</p>
  <p>Below is my build.gradle file</p>
  <pre><code>plugins {
      id 'com.android.application'
      id 'org.jetbrains.kotlin.android'
      id 'kotlin-kapt'    // 추가
      id 'com.google.devtools.ksp' version &quot;1.5.31-1.0.0&quot;
  }
  
  android {
      compileSdk 32
  
      defaultConfig {
          applicationId &quot;com.example.roomtest2&quot;
          minSdk 26
          targetSdk 32
          versionCode 1
          versionName &quot;1.0&quot;
  
          testInstrumentationRunner &quot;androidx.test.runner.AndroidJUnitRunner&quot;
      }
  
      buildTypes {
          release {
              minifyEnabled false
              proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
          }
      }
      compileOptions {
          sourceCompatibility JavaVersion.VERSION_1_8
          targetCompatibility JavaVersion.VERSION_1_8
      }
      kotlinOptions {
          jvmTarget = '1.8'
      }
  }
  
  dependencies {
      implementation 'androidx.core:core-ktx:1.8.0'
      implementation 'androidx.appcompat:appcompat:1.4.2'
      implementation 'com.google.android.material:material:1.6.1'
      implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
      testImplementation 'junit:junit:4.13.2'
      androidTestImplementation 'androidx.test.ext:junit:1.1.3'
      androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
  
      //ROOM LIBRARY
      def roomVersion = &quot;2.4.2&quot;
  
      implementation(&quot;androidx.room:room-runtime:$roomVersion&quot;)
      annotationProcessor(&quot;androidx.room:room-compiler:$roomVersion&quot;)
  
      // To use Kotlin annotation processing tool (kapt)
      kapt(&quot;androidx.room:room-compiler:$roomVersion&quot;)
      // To use Kotlin Symbolic Processing (KSP)
      ksp(&quot;androidx.room:room-compiler:$roomVersion&quot;)
  
      // optional - Kotlin Extensions and Coroutines support for Room
      implementation(&quot;androidx.room:room-ktx:$roomVersion&quot;)
  
      // optional - RxJava2 support for Room
      implementation(&quot;androidx.room:room-rxjava2:$roomVersion&quot;)
  
      // optional - RxJava3 support for Room
      implementation(&quot;androidx.room:room-rxjava3:$roomVersion&quot;)
  
      // optional - Guava support for Room, including Optional and ListenableFuture
      implementation(&quot;androidx.room:room-guava:$roomVersion&quot;)
  
      // optional - Test helpers
      testImplementation(&quot;androidx.room:room-testing:$roomVersion&quot;)
  
      // optional - Paging 3 Integration
      implementation(&quot;androidx.room:room-paging:2.5.0-alpha02&quot;)
  }
  </code></pre>
  <p>Error message:</p>
  <pre><code>Unable to find method ''void org.jetbrains.kotlin.gradle.tasks.KotlinCompile.&lt;init&gt;(org.jetbrains.kotlin.gradle.dsl.KotlinJvmOptions)''
  'void org.jetbrains.kotlin.gradle.tasks.KotlinCompile.&lt;init&gt;(org.jetbrains.kotlin.gradle.dsl.KotlinJvmOptions)'
  
  Gradle's dependency cache may be corrupt (this sometimes occurs after a network connection timeout.)
  
  Re-download dependencies and sync project (requires network)
  The state of a Gradle build process (daemon) may be corrupt. Stopping all Gradle daemons may solve this problem.
  
  Stop Gradle build processes (requires restart)
  Your project may be using a third-party plugin which is not compatible with the other plugins in the project or the version of Gradle requested by the project.
  
  In the case of corrupt Gradle processes, you can also try closing the IDE and then killing all Java processes.
  </code></pre>
  <p>What should I do?</p>