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.
要启用 viewBinding,我将其添加到 gradle:
viewBinding { enabled = true }
有没有办法在我创建新项目时默认启用 viewBinding?
因为它用于数据绑定,也用于视图绑定。它发生在年级通过使其成为真实。瞧!
我很确定默认情况下无法启用它,因为没有可用的设置或插件,但我可能错了。