Kulwinder Singh
08/23/2019, 8:15 AMCannot 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
while using viewModel()
function to get fragment's viewmodel ?Luca Nicoletti
08/23/2019, 8:16 AMMelvin Biamont
08/23/2019, 8:17 AMandroid{
(...)
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
}
Drew Hamilton
08/23/2019, 8:18 AMkotlinOptions.jvmTarget = JavaVersion.VERSION_1_8
Kulwinder Singh
08/23/2019, 8:20 AMwasyl
08/23/2019, 8:52 AMKulwinder Singh
08/23/2019, 8:55 AM