Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在 build.gradle 文件中启用了视图绑定:
android { ... viewBinding { enabled = true } }
我已经拆分了我的布局文件夹以维护订单,因为它是一个大项目。但是,没有生成我的 ViewBinding 类。
如何解决这个错误?
正如您所提到的,这可能是因为您在布局文件夹中创建了子文件夹,这不是您应该做的事情
但是,有这样的插件:
这允许您拥有虚拟文件夹。
我遇到了同样的问题。我不得不将我的 android studio 更新到 3.6 或更高版本。它将解决问题。