반응형
Could not determine the dependencies of task ':app:compileDebugJavaWithJavac'.
> Could not create task ':app:kspDebugKotlin'.
> Cannot query the value of task ':app:kspDebugKotlin' property 'classpathSnapshotProperties.useClasspathSnapshot' because it has no value available.
프로젝트를 새로 만들고 의존성을 추가 후 앱을 실행했더니 위와 같은 에러가 발생했다. 의존성을 추가하고 sync에서 문제가 발생하지 않아서 조금 헤매었는데, 이 에러는 KGP와 KSP의 버전이 불일치할 때 자주 나타난다고 한다.
버전 카탈로그에 적용한 버전 정보를 보면 kotlin과 kspVersion의 버전이 맞지 않았다. 코틀린 버전을 ksp에 맞춰 "2.1.10"으로 수정했더니 정상적으로 앱이 빌드 됐다.
반응형
'Android > 이슈 처리' 카테고리의 다른 글
[Android] Warning: SDK processing. This version only ··· (0) | 2025.07.04 |
---|---|
[Android] Execution failed for task ':app:checkDebugDuplicateClasses' ··· (0) | 2023.05.11 |
[Android] warning: Schema export directory is not provided ··· (0) | 2023.04.07 |
[Android] Deprecated Gradle features were used in ··· (0) | 2023.04.05 |
[Android] Failed to instantiate test runner class ··· (0) | 2023.03.22 |