[Flutter] 안드로이드 App Bundle 생성 오류

hidihyeonee·2024년 9월 8일
0

2024.09.08 작성

OS : macOs
개발환경 : Android Studio
개발언어 : Dart
프레임워크 : Flutter


으라챠챠 드디어 수많은 QA를 끝내고 업데이트 하는 날!

iOS는 테플 올리고 심사 넣은 상태.

플레이스토어는 App Bundle로 제출해야 해서

팀원의 요청으로 오랜만에 안드로이드 App Bundle 추출!

그런데 이미 예전에 키 성명은 다 해놓은 상태라... 바로 될 줄 알고

flutter build appbundle

위와 같은 명령어를 터미널에 입력했다.

그런데 아래와 같은 오류 발생...

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 ':sign_in_with_apple' -> org.jetbrains.kotlin:kotlin-gradle-plugin:1.3.50

* 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

BUILD FAILED in 59s
Running Gradle task 'bundleRelease'...                             60.2s
Gradle task bundleRelease failed with exit code 1

버전 호환 문제 같은데 확인해 본 결과... 그건 아닌 듯했다.

그래서 구글링 해보니까

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

이 코드의 버전을 7.1.2로 바꿔주면 된다고 했다.

(사진은 이미 버전을 바꾼 후 캡쳐한 사진이다.)

이유는 모르겠는데... 이렇게 해주니까 됐다!


앱 번들 업로드 완료!

profile
벨로그 쫌 재밌네?

0개의 댓글