Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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. #669

Open
thrinath925 opened this issue Jun 21, 2024 · 2 comments

Comments

@thrinath925
Copy link

thrinath925 commented Jun 21, 2024

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
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")
}
}

@thrinath925
Copy link
Author

can some one explain is it correct way are not

@muffix200
Copy link

muffix200 commented Jun 22, 2024

#511 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants