Notice
Recent Posts
Recent Comments
Link
250x250
«   2025/07   »
1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30 31
Tags more
Archives
Today
Total
관리 메뉴

혼자서 앱 만드는 개발자 함께하는 AI 세상

플러터 안드로이드 버전 문제 해결 본문

마이봇 chat GPT 오픈 프로젝트

플러터 안드로이드 버전 문제 해결

혼앱사 2024. 9. 30. 06:51
반응형

플러터 버전 3.19 이상으로 업데이트 하면서 코틀린 버전에 문제가 생긴것같다.

APK 파일 생성이 아래와 같이 에러가 발생하고 업그레이드 하라도 하는데 난감하다.

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

BUILD FAILED in 6m 32s
Running Gradle task 'assembleRelease'...                          394.1s

┌─ 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:\git\cleaning_dot\android\settings.gradle.                                                           │
│                                                                                                        │
│ Alternatively (if your project was created before Flutter 3.19), update                                │
│ C:\git\cleaning_dot\android\build.gradle                                                               │
│ ext.kotlin_version = '<latest-version>'                                                                │
└────────────────────────────────────────────────────────────────────────────────────────────────────────┘
Gradle task assembleRelease failed with exit code 1

C:\git\cleaning_dot>flutter build apk --release --target-platform=android-arm64

Picked up JAVA_TOOL_OPTIONS: -Dstdout.encoding=UTF-8 -Dstderr.encoding=UTF-8
Running Gradle task 'assembleRelease'...     

 

이도저도 안되서 

안드로이드 스튜디어 버전 업그레이드 함 

gradle 버전을 올리기 위해서 해당 스튜디오를 최신버전으로 설치하여한다고 함 스튜디오마다 gradle 가능 버전이 적용됨

File > project struct

 

                          \

728x90
반응형
Comments