Hi team!!! I have a question :slightly_smiling_fa...
# compose
e
Hi team!!! I have a question 🙂 Im using AbstractComposeView but when I add the custom view into a XML file, the Android Studio preview show me this error: Some idea of how solved it?
🙏 1
c
I think Android Studio's XML layout editor does not support previewing composables that you embed in AbstractComposeView.
e
I think so, the problem is that breaks the entire preview
c
Oh wait sorry I didn't realize that it breaks your entire preview. IIRC (at least in Arctic Fox or 4.x versions of Studio) The rest of the preview would render fine. It would show a placeholder for the AbstractComposeView section
e
Im using
Looks like this!! breaking all the preview
c
cc @amaury
🙏 1
a
Can you try adding a direct dependency to
androidx.lifecycle:lifecycle-runtime
in your project?
it can be a
debugImplementation
dependency, so it's not part of your release APK
we've had a problem with resolving transitive runtime dependencies, but unfortunately the fix is only available in Dolphin
e
Hi @amaury, thanks for answer!!! I tried adding debugImplementation, but continue show the same error
I tried to with Dolphin and no =(
a
is it the very same error?