Skip to content

bytecode version error when accessing Message class #39

@cmaxw

Description

@cmaxw

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions