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
Adding support for Java 8 language features could solve this issue.
throws unresolved reference. How can I fix this? Thanks 🙏
ps: don’t know if it’s related or just a coincidence, but I got this error after adding multiplatformSettings lib 🤔
Was it only failing to resolve in the IDE or did Gradle sync or any other Gradle run also failed?
g
Guilherme Delgado
05/22/2021, 4:56 PM
gradle sync was ok, but building was throwing:
Copy code
:shared:compileDebugKotlinAndroid
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