strada-android
strada-android copied to clipboard
bytecode version error when accessing Message class
e: file:///Users/chuck/Projects/codeflix-android/app/src/main/java/com/topenddevs/topenddevs/NavMenuComponent.kt:27:28 Cannot inline bytecode built with JVM target 17 into bytecode that is being built with JVM target 1.8. Please specify proper '-jvm-target' option
I've imported dev.hotwire.strada.Message
private fun renderMenu(message: Message) {
val data = message.?data<MessageData>() // <-- Compile error happens here on the ?.data
val items = data!!.items
items.forEach {
addMenuItem(it)
}
}