[flutter]오류

미미제이·2024년 9월 9일

flutter

목록 보기
4/7

firebase 와 연동하고, cloud_firestore를 설치한후 이뮬레이터를 돌려봤을때

Execution failed for task ':app:compileDebugKotlin'. > A failure occurred while executing org.jetbrains.kotlin.compilerRunner.GradleCompilerRunnerWithWorkers$GradleKotlinCompilerWorkAction > Compilation error. See log for more details

오류발생

당황해서 이것저것 찾아봤지만
아래 flutter fix에서 해결책 제시해줌

[!] Your project requires a newer version of the Kotlin Gradle plugin.
Find the latest version on https://kotlinlang.org/docs/releases.html#release-details, then
update the
version number of the plugin with id "org.jetbrains.kotlin.android" in the plugins block of
C:\프로젝트명\android\settings.gradle.

Alternatively (if your project was created before Flutter 3.19), update
C:\practice\todo_app\android\build.gradle
ext.kotlin_version = ''

setting.gradle에서 kotlin_version = ''수정해 주란다.

코틀린 최신버전에 맞게 수정
https://kotlinlang.org/docs/releases.html#release-details
에서 확인

이뮬레이터 실행됨.

오류를 잘 읽어보자~

profile
기록하는 미미

0개의 댓글