* What went wrong: Execution failed for task ':app...
# gradle
n
* What went wrong: Execution failed for task 'appkaptDebugKotlin'. > A failure occurred while executing org.jetbrains.kotlin.gradle.internal.KaptWithoutKotlincTask$KaptExecutionWorkAction > Task appkaptDebugKotlin FAILED > Task appkaptGenerateStubsReleaseKotlin w: Kapt currently doesn't support language version 2.0+. Falling back to 1.9. FAILURE: Build failed with an exception. * What went wrong: Execution failed for task 'appkaptDebugKotlin'. > A failure occurred while executing org.jetbrains.kotlin.gradle.internal.KaptWithoutKotlincTask$KaptExecutionWorkAction should i change jdk version ?
v
I said not in the #C19FD9681 channel, this is still not a Gradle question. 😉 #C2R77UD35 is porbably more targeted.
🤣 1
c
Also what you posted is just a warning that does not fail the build. You need to look for the error log.
n
this is not make sense look error . think is why coming error
c
No, look further up in the logs.
n
i am new here in this group so no idea about all channel
c
I told you in another thread already that you need to learn how to use your tools. KAPT is just an annotation processor that generates code. Where you use it, only you and your project knows.
n
i use in version.toml file to the kapt after that i use in build.gradle project and app as pulgin . whereas i use in plugin within version.toml file
Copy code
kapt(libs.hilt.compiler)
Copy code
implementation(libs.bundles.hilt)
kapt(libs.hilt.compiler)
alias(libs.plugins.kapt)
alias(libs.plugins.hilt.android)
alias(libs.plugins.hilt.android) apply false // Apply the Hilt plugin using the alias
alias(libs.plugins.kapt) apply false
kapt = { id = "org.jetbrains.kotlin.kapt", version.ref = "kotlin" }
c
So you still have your issue with the
NonExistingClass
from the other thread? ask in a forum for dagger/hilt. Here we talk about the Kotlin programming language and not libraries provided by Google.
n
issue is kapt
not dagger / hilt issue