Whenever I use Fragmet KTX in my projects, specifically binding viewModel using property delegates (viewModels
& activityViewModels
) I face an compiler error:
Cannot inline bytecode built with JVM target 1.8 into bytecode that is being built with JVM target 1.6
So to fix that I have to set the jvmTarget to 1.8 in build.gradle
What I don't understand is that why is the jvmTarget set to 1.6 by default and does changing it cause any compatibility issues?