Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bytecode version error when accessing Message class #39

Open
cmaxw opened this issue Jul 5, 2024 · 0 comments
Open

bytecode version error when accessing Message class #39

cmaxw opened this issue Jul 5, 2024 · 0 comments

Comments

@cmaxw
Copy link

cmaxw commented Jul 5, 2024

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)
        }
    }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant