Skip to content

Instantly share code, notes, and snippets.

@AngelKrak
Created November 11, 2022 04:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AngelKrak/7a4b8c996ab1ad97485779d9268af998 to your computer and use it in GitHub Desktop.
Save AngelKrak/7a4b8c996ab1ad97485779d9268af998 to your computer and use it in GitHub Desktop.
Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.6.0, expected version is 1.4.0.

Errors:

  • Detected multiple Kotlin daemon sessions at build/kotlin/sessions
  • was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.6.0, expected version is 1.4.0.
  • Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.6.0, expected version is 1.4.0.

Tasks:

  • Execution failed for task ':react-native-screens:compileDebugKotlin'.

Instrucciones:

Agregar en el siguiente archivo "/android/build.gradle" la versión de kotlin en "buildscript/ext" y en "dependencies", abajo de "com.android.tools.build:gradle" agregar "org.jetbrains.kotlin:kotlin-gradle-plugin".

buildscript {
  ext {
    kotlin_version = '1.6.10'
    ...
  }
}

dependencies {
  classpath("com.android.tools.build:gradle:7.0.4")
  classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
  ...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment