6

I had some troubles when I tried to use the latest Android building tool(gradle-experimental:0.6.0-alpha3) with databinding framework. It results in an error when I try to refresh 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
        }
    }
    ...
}
bitdancer
  • 1,215
  • 2
  • 19
  • 34

1 Answers1

0

This worked for me

android.dataBinding {
    enabled true
}
artyoda21
  • 129
  • 3