본문 바로가기

[Flutter] gradle 버전 이슈

I'm 영서 2023. 1. 25.
반응형

image_gallery_saver를 pubspec.yaml 에 추가하는데 하기와 같은 에러가 발생했다.

잘 읽어보니 안드로이드 Gradle은 코틀린 플러그인   1.5.20 버전 이상만 지원한다는 내용이었다. 

또 해당사항은 image_gallery_saver 에서만 발생한 것이라는것을 확인했고

 

android/build.gradle 에서 

classpath 'com.android.tools.build:gradle:7.3.0'

->
classpath 'com.android.tools.build:gradle:7.1.2'

변경해줘서 해결.. 

 

FAILURE: Build failed with an exception.

* What went wrong:
The Android Gradle plugin supports only Kotlin Gradle plugin version 1.5.20 and higher.
The following dependencies do not satisfy the required version:
project ':image_gallery_saver' -> org.jetbrains.kotlin:kotlin-gradle-plugin:1.3.72

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.

* Get more help at https://help.gradle.org

 

Gradle | Search for Help with Gradle Build Tool

 

gradle.org

 

 

 

반응형

댓글