개발/Android
오류: Cannot inline bytecode built with JVM target 1.8 ..
Lumasca
2020. 1. 7. 10:42
Android Studio 에서 기존에 빌드가 잘되던 프로젝트가 특별히 건드린 것이 없는데 아래와 같은 오류를 발생시킨다.
Cannot inline bytecode built with JVM target 1.8 into bytecode that is being built with JVM target 1.6
Module의 build.gradle 파일에 다음과 같이 추가해보자.
android {
...
compileOptions {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}
kotlinOptions {
jvmTarget = JavaVersion.VERSION_1_8
}
}