Android/Troubleshooting
Cannot inline bytecode built with JVM target 1.8 into bytecode that is being built with JVM target 1.6
parkho79
2021. 5. 24. 11:15
728x90
Kotlin 으로 compile 하던 중 JVM target 이 맞지 않는다며 오류가 발생했다.
이번 포스팅에서는 해당 오류를 해결하는 방법에 대해 알아보자
Error message
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
Solution
하단과 같이 gradle 에 jvmTarget 을 명시하거나 kotlin compiler 설정을 변경하여 해결 할 수 있다.
◼ Gralde 에 jvmTarget 명시하기
◼ Kotlin compiler 설정하기
728x90