報錯資訊
Cannot inline bytecode buit with JVM target 1.8 into bytecode that is being built with JVM target 1.6.Please specify proper '-jvm-target' option
解決方法:
在app目錄下build.gradle檔案裡面添加
kotlinOptions{
jvmTarget = "1.8"
}
比如: