Android
Cannot inline bytecode built with JVM target 1.8 into bytecode that is being built with JVM target 1.6. Please specify proper '-jvm-target' option
NukeOlaf
2020. 4. 8. 22:26
Okhttp3 Intercepter 코드를 아래와 같이 작성했는데
Cannot inline bytecode built with JVM target 1.8 into bytecode that is being built with JVM target 1.6. Please specify proper '-jvm-target' option
이런 에러가 떴다.
Module: app 수준의 build.gradle 에 해당 내용을 입력하니 해결되었다.
android {
compileOptions {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}
kotlinOptions {
jvmTarget = JavaVersion.VERSION_1_8
}
}