본문 바로가기
Programming/Flutter

[Flutter] Android build error (Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.5.1, expected version is 1.1.15)

by guru_k 2022. 1. 13.
728x90
반응형

Android build 시 아래 에러가 발생하면 kotlin 최신 버전으로 업데이트한다.

Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.5.1, expected version is 1.1.15

kotlin version 은 android/build.gradle 에서 변경이 가능하다.

buildscript {
    ext.kotlin_version = '1.6.10'  // 최신 버전으로 업데이트
    repositories {
        google()
        mavenCentral()
    }

    dependencies {
        classpath 'com.android.tools.build:gradle:4.1.0'
        classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
    }
}

이후 다시 빌드해서 정상적으로 앱이 실행되는지 확인

728x90
반응형

'Programming > Flutter' 카테고리의 다른 글

[Flutter] flutter Admob 연동 (android + ios)  (0) 2022.02.03

댓글