Avatar ·

How to use Jetpack Compose inside Fragment in Android app on Kotlin?

Hi everyone! I'm learning Jetpack Compose and ran into a problem. I have an existing Android app that uses Fragments. I want to gradually adopt Compose, but I can't figure out how to properly embed Compose code inside a Fragment. I tried using `ComposeView` in the fragment's XML layout, but I'm getting errors. Here's my current code: **fragment_example.xml:** ```xml