React-Native Execution failed for task ‘:react-native-gesture-handler:compileDebugKotlin’.
Execution failed for task ':react-native-gesture-handler:compileDebugKotlin'.
Task :react-native-gesture-handler:compileDebugKotlin FAILED
Adding the following lines in the android/build.gradle fixes the error:
buildscript {
ext {
// ...
kotlin_version = '1.6.10' // <- add this line
}
dependencies {
// ...
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" // <- add this line
// ...
}
}