-
[Flutter] Your project requires a newer version of the Kotlin Gradle plugin. 에러 해결Memo/Dart & Flutter 2024. 2. 4. 17:30
⚠️ 문제
Flutter와 Firebase를 연동하는 과정에서 아래와 같은 에러가 발생하였다.
FAILURE: Build failed with an exception.
...
[!] Your project requires a newer version of the Kotlin Gradle plugin.
...
Exception: Gradle task assembleDebug failed with exit code 1💡원인
프로젝트 수준의 build.gradle에 kotlin 구버전이 적용되어 있어 발생한 오류이었다.
✅ 해결
단순히 kotlin의 버전을 최신 버전으로 고쳐 해결할 수 있었다.
kotlin 최신 버전은 아래 페이지에서 확인할 수 있다.
Kotlin releases | Kotlin
kotlinlang.org
// project/android/build.gradle buildscript { ext.kotlin_version = '1.9.22' // 최신 버전으로 수정 repositories { google() mavenCentral() }
Your project requires a newer version of the Kotlin Gradle plugin. (Android Studio)
I've just updated my flutter project packages to be null-safety compliant and now Android Studio wants me to update my project to use the latest version of Kotling Gradle Plugin. Can't see where to
stackoverflow.com
'Memo > Dart & Flutter' 카테고리의 다른 글
[Flutter] PlatformException(null-error, Host platform returned null value for non-null return value., null, null). 에러 해결 (0) 2024.02.05 [Flutter] App requires Multidex support. 에러 해결 (0) 2024.02.04 [Flutter] SnackBar와 Toast 차이점 (0) 2024.01.15 [Flutter] AppBar 배경 색상 사라짐, 색깔 지정 방법 (0) 2024.01.10 [Flutter] Stateless Widget과 Stateful Widget (0) 2024.01.09