strada-android icon indicating copy to clipboard operation
strada-android copied to clipboard

bytecode version error when accessing Message class

Open cmaxw opened this issue 1 year ago • 0 comments

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)
        }
    }

cmaxw avatar Jul 05 '24 23:07 cmaxw