Outdated Kotlin Runtime 오류 문제
Event Log에서 다음과 같은 메시지가 발생해서 빌드를 못하는 경우가 발생
Outdated Kotlin Runtime
Your version of Kotlin runtime in 'Gradle: org.jetbrains.kotlin:kotlin-stdlib:1.2.30@jar' library is 1.2.30-release-78 (1.2.30), while plugin version is 1.2.40-release-Studio3.1-1. Runtime library should be updated to avoid compatibility problems.
해결 방법은 다음 출처를 참조
build.gradle 을 수정해야 하는데 각 프로젝트의 root 폴더에 build.gradle 파일을 수정해야 한다
아래 이미지와 같이 편집기를 열어서 수정을 해야 한다
buildscript {
ext.kotlin_version = '1.2.40'
repositories {
google()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.1.2'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
기존에는 처음의 오류와 같이 1.2.30 인데 1.2.40 으로 수정을 하면 정상적으로 빌드가 가능하다
작업 중인 프로젝트는 위와 같은 작업이 필요하지만 새로운 프로젝트를 만들면 버전이 업데이트 되기 때문에 수정이 필요없다
작업 중인 프로젝트는 위와 같은 작업이 필요하지만 새로운 프로젝트를 만들면 버전이 업데이트 되기 때문에 수정이 필요없다
댓글
댓글 쓰기