FAILURE: Build failed with an exception.
-
Where:
Build file 'C:\Users\DELL\Desktop\React native camera module\videochat\node_modules\react-native-camera-kit\android\build.gradle' line: 23
-
What went wrong:
A problem occurred evaluating project ':react-native-camera-kit'.
Could not get unknown property 'kotlin_version' for object of type org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler.
Run with --stacktrace option to get the stack trace.
Run with --info or --debug option to get more log output.
Run with --scan to get full insights.
Get more help at https://help.gradle.org.
BUILD FAILED in 7s
error Failed to install the app. Command failed with exit code 1: gradlew.bat app:installDebug -PreactNativeDevServerPort=8081 FAILURE: Build failed with an exception. * Where: Build file 'C:\Users\DELL\Desktop\React native camera module\videochat\node_modules\react-native-camera-kit\android\build.gradle' line: 23 * What went wrong: A problem occurred evaluating project ':react-native-camera-kit'. > Could not get unknown property 'kotlin_version' for object of type org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler. * Try: > Run with --stacktrace option to get the stack trace. > Run with --info or --debug option to get more log output. > Run with --scan to get full insights. > Get more help at https://help.gradle.org. BUILD FAILED in 7s.
info Run CLI with --verbose flag for more details.
solved
i don't know is it fix are not but
but for me this errors is solved by
changing a build file in node_modules\react-native-camera-kit\android\build.gradle
from
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
to
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlinVersion"
i have changed to kotlinVersion bcoz i found that build.gradle in android\build.gradle
kotlinVersion = "1.9.22" vibrable name is like this rather kotlin_version
buildscript {
ext {
buildToolsVersion = "34.0.0"
minSdkVersion = 23
compileSdkVersion = 34
targetSdkVersion = 34
ndkVersion = "26.1.10909125"
kotlinVersion = "1.9.22" -------------------------------------> observe this name
}
repositories {
google()
mavenCentral()
}
dependencies {
classpath("com.android.tools.build:gradle")
classpath("com.facebook.react:react-native-gradle-plugin")
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin")
}
}