[Solved] Can not inline bytecode built with JVM target 1.8 into bytecode that is being built with JVM target 1.6.

Yug Damor
Oct 29, 2020

<meta name=”google-site-verification” content=”wIUwft_2K76uUFOLMbfxo7QDwFBIafprnd3-usdEpBM” />

Please specify proper ‘-jvm-target’ option

i spent my lots of time solving this issue. and i do not want that you too spent your precious time to solve this error.

this issue is very easy to solve.

the reason behind this error is default jvm version. which is by default 1.6.we have to update that version to 1.8.

and we can easily do that by adding few line of code into our APP’s build.gradle file.

here i highlight APP’s .

so make sure you put this code inside APP’s build.gradle. not into Project build.gradle.

This is for kotlin lang.

kotlinOptions
{
jvmTarget = 1.8
}

if my post saved your time. then please give it APPLAUSE 👏.

thank you.

--

--