Когда я использую последнюю версию ksp и hilt, выдает эту ошибку.
ksp = "2.0.0-1.0.22"
hilt = "2.51.1"
Я создал новый проект, обновил все библиотеки Google и использую последнюю версию gradle.
При использовании последней версии Hilt и Ksp я сталкиваюсь со следующей ошибкой.< /p>
Unable to load class 'org.jetbrains.kotlin.buildtools.api.SourcesChanges'
org.jetbrains.kotlin.buildtools.api.SourcesChanges
Gradle's dependency cache may be corrupt (this sometimes occurs after a network connection timeout.)
Re-download dependencies and sync project (requires network)
The state of a Gradle build process (daemon) may be corrupt. Stopping all Gradle daemons may solve this problem.
Stop Gradle build processes (requires restart)
Your project may be using a third-party plugin which is not compatible with the other plugins in the project or the version of Gradle requested by the project.
In the case of corrupt Gradle processes, you can also try closing the IDE and then killing all Java processes.
[versions]
ksp = "2.0.0-1.0.22"
hilt = "2.51.1"
[libraries]
hilt-android-compiler = { group = "com.google.dagger", name = "hilt-android-compiler", version.ref = "hilt" }
hilt-android = { group = "com.google.dagger", name = "hilt-android", version.ref = "hilt" }
[plugins]
ksp = { id = "com.google.devtools.ksp", version.ref = "ksp" }
hilt = { id = "com.google.dagger.hilt.android", version.ref = "hilt" }`
`//gradle project
alias(libs.plugins.ksp) apply false
alias(libs.plugins.hilt) apply false
//gradle module
alias(libs.plugins.ksp)
alias(libs.plugins.hilt)
dependencies {
ksp(libs.hilt.android.compiler)
implementation(libs.hilt.android)
}
Подробнее здесь: https://stackoverflow.com/questions/786 ... this-error
Когда я использую последнюю версию ksp и hilt, выдает эту ошибку ⇐ Android
-
- Похожие темы
- Ответы
- Просмотры
- Последнее сообщение