[ksp] [Hilt] Access to invalid ksp.org.jetbrains.kotlin.analysis.api.platform.lifetime.KotlinAlwaysAccessibleLifetimeToken@2438f397: PSI has changed since creation:
- Dominant language
- Kotlin
- Stars
- 3.5k
- Forks
- 415
- Avg merge
- 1d 2h
- Merged PRs (30d)
- 53
Description
I keep getting this error and I don't know how to get around it. I started getting it when I started updating in the build.gradle and this is my current project level gradle
`// Top-level build file where you can add configuration options common to all sub-projects/modules.
plugins {
id("com.android.application") version "8.12.0" apply false
id("com.android.library") version "8.12.0" apply false
id("org.jetbrains.kotlin.kapt") version "2.2.0" apply false
id("com.google.gms.google-services") version "4.4.3" apply false
id("com.google.devtools.ksp") version "2.2.0-2.0.2" apply false
id("com.google.dagger.hilt.android") version "2.57" apply false
id("org.jetbrains.kotlin.android") version "2.2.0" apply false
// id("org.jetbrains.kotlin.plugin.compose") version "2.2.0" // this version matches your Kotlin version
kotlin("plugin.serialization") version "2.2.20-Beta2" apply false
// Just added July 2nd 2025 - may change
alias(libs.plugins.compose.compiler) apply false
}
buildscript {
dependencies {
classpath(libs.google.services)
}
}
`
I kept seeing something about ksp2 when I researched to resolve it but I don't really understand the error fully. I've been using Gemini and researching other issues posted but couldn't figure it out thus far.
`
Contributor guide
Assessment
This issue has not been assessed yet.