Android gradle -experimental with data binding not working?

I had some problems when I tried to use the latest Android build tool (gradle -experimental: 0.6.0-alpha3) with the database. This results in an error when trying to update all gradle projects.

First: Error:Exception thrown while executing model rule: BaseComponentModelPlugin.Rules#createBinaryTasks > create(dataBindingExportBuildInfoAllDebug)

 model { ... android.dataBinding { enabled = true } ... } 

Second: Error:Cause: com.android.build.gradle.managed.AndroidConfig$Impl

 model { android { ... dataBinding { enabled = true } } ... } 
+6
source share
1 answer

It worked for me

 android.dataBinding { enabled true } 
0
source

All Articles