Closed EthanCo closed 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
val binding: ActivityMainBinding by viewbind()
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
把jvmTarget改为11就好了
jvmTarget
11
kotlinOptions { jvmTarget = '11' }
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