迁移到AndroidX之后,我发现在某些类中,并不是所有的类-- kotlinx.android.synthetic字段--现在都无法转换为实际的类。
小部件有一个未解决的类型'androidx.core.widget.DrawerLayout',因此它被提升为'android.view.View‘。
kotlinx.android.synthetic目前是否与AndroidX不兼容?
发布于 2018-08-29 14:46:00
我使用的是androidx和kotlinx.android.synthetic,抽屉布局没有问题。我相信抽屉的布局标签应该是androidx.drawerlayout.widget.DrawerLayout。
https://stackoverflow.com/questions/52080126
复制相似问题