启用 viewBinding 的选项之间有什么区别:
viewBinding {
enabled = true
}
并且
绝妙的
buildFeatures {
viewBinding true
}
Kotlin
buildFeatures {
viewBinding = true
}
最佳答案
这是关于AGP(Android Gradle插件)的 如果您使用旧版本 AGP 3.6 及更低版本,则应该使用 viewBinding {启用= true}:
如果您使用高版本,请使用 buildFeatures { viewBinding = true }:
关于kotlin - viewBindingenabled true 和 buildfeatures viewBinding true 有什么区别,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/71972954/