[Android] Could not create task ':app:kspDebugKotlin'.

2025. 10. 14. 19:46·Android/이슈 처리
반응형
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
'Android/이슈 처리' 카테고리의 다른 글
  • [Android] Warning: SDK processing. This version only ···
  • [Android] Execution failed for task ':app:checkDebugDuplicateClasses' ···
  • [Android] warning: Schema export directory is not provided ···
  • [Android] Deprecated Gradle features were used in ···
O_Gyong
O_Gyong
안드로이드 기술 정리
  • O_Gyong
    O_Gyong's TECH
    O_Gyong
    • 분류 전체보기 (80)
      • Android (57)
        • ADB (4)
        • Architecture (1)
        • Data (5)
        • Network & Connecting (4)
        • Security & Privacy (3)
        • UI (24)
        • 기타 (2)
        • 이슈 처리 (14)
      • Android Studio (5)
      • Firebase (2)
      • Git (3)
      • 작업 일지 (13)
  • 최근 글

  • 인기 글

  • 태그

    hilt
    GIT
    compose
    paging
    Andoird
    issue
    해상도
    loading
    recyclerview
    kizitonwose
    Pagination
    Android Studio
    Bluetooth
    Room
    flow
    in-app update
    firebase
    CalendarView
    webview
    TabLayout
    Paging3
    ADB
    github
    Android
    SharedPreferences
    CameraX
    MQTT
    Kotlin
    BLE
    Navigation
  • 링크

    • GitHub
  • 블로그 메뉴

    • 홈
    • 태그
    • 방명록
  • hELLO· Designed By정상우.v4.10.4
O_Gyong
[Android] Could not create task ':app:kspDebugKotlin'.
상단으로

티스토리툴바