2

I'm trying to use some fragments within jetpack compose but I can not import AndroidViewBinding from (androidx.compose.ui.viewinterop) and it is always appearing as an unresolved name

how to import it ??

Karrar
  • 1,273
  • 3
  • 14
  • 30

1 Answers1

9

I just came against the same problem - unresolved. Turns out, we need to import:

implementation "androidx.compose.ui:ui-viewbinding:$compose_uiversion"

See here for more info - (latest stable version is 1.3.2)

Just another example where I wish they really made their documentation explicit about dependencies. This official documentation doesn't help.

Dmitri
  • 2,563
  • 1
  • 22
  • 30