一、DataBinding开启配置修改
升级到AS 4.0以后,出现如下的预警:
DSL element 'android.dataBinding.enabled' is obsolete and has been replaced with 'android.buildFeatures.dataBinding'
解决方法:
将之前的配置文件由:
dataBinding { enabled true }
修改为:
buildFeatures { dataBinding true }
dataBinding {
enabled true
}