Android gradle-experimental with databinding not working?
Asked Answered
E

1

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
        }
    }
    ...
}
Excavation answered 14/1, 2016 at 8:47 Comment(1)
Did you figure out how to use databinding with gradle-experimental?Locomobile
E
0

This worked for me

android.dataBinding {
    enabled true
}
Equinoctial answered 11/8, 2016 at 20:47 Comment(1)
I think you meant you used enabled = true? For me only with the = it worked.Locomobile

© 2022 - 2024 — McMap. All rights reserved.