hi-dhl / Binding

Simple API implement DataBinding and ViewBinding. 简单的 API 实现 DataBinding 和 ViewBinding,欢迎 star
Apache License 2.0
427 stars 48 forks source link

Cannot inline bytecode built with JVM target 11 into bytecode that is being built with JVM target 1.8. Please specify proper '-jvm-target' option #37

Closed EthanCo closed 2 years ago

EthanCo commented 2 years ago

val binding: ActivityMainBinding by viewbind() Android Studio标红报错 : Cannot inline bytecode built with JVM target 11 into bytecode that is being built with JVM target 1.8. Please specify proper '-jvm-target' option

EthanCo commented 2 years ago

jvmTarget改为11就好了

kotlinOptions {
    jvmTarget = '11'
}