Kotlinx synthetic and AndroidX

Viewed 2125

After migrating to AndroidX I found that in some, not all of my classes the kotlinx.android.synthetic fields are now failing to convert to the actual class.

Widget has an unresolved type 'androidx.core.widget.DrawerLayout', and thus it was upcasted to 'android.view.View'

Is kotlinx.android.synthetic currently incompatible with AndroidX?

1 Answers

I'm using androidx with kotlinx.android.synthetic and a drawer layout with no issues. I believe the drawer layout tag should be androidx.drawerlayout.widget.DrawerLayout.

Related