Coram Deo

[Flutter] 에러 해결 - location 패키지 적용 시 코틀린 버전 이슈 / Execution failed for task ':location:compileDebugKotlin'. 본문

에러 해결

[Flutter] 에러 해결 - location 패키지 적용 시 코틀린 버전 이슈 / Execution failed for task ':location:compileDebugKotlin'.

탁탁슝 2024. 10. 7. 20:50

1. 에러 메시지

* What went wrong:

Execution failed for task ':location:compileDebugKotlin'.

> A failure occurred while executing org.jetbrains.kotlin.compilerRunner.GradleCompilerRunnerWithWorkers$GradleKotlinCompilerWorkAction
> Compilation error. See log for more details

 

2. 에러 원인

location 패키지 적용 후, 코틀린 버전이 안맞아서 에러 발생

 

3. 해결 방법

android\settings.gradle 에 가서 아래 코틀린 버전 부분 수정하기

  • 수정 전 내 코틀린 버전 1.7.10

 

      • 수정 후 코틀린 버전 1.9.0