Reputation: 31
I am testing Android new feature DataBinding. My Android studio version is 1.5.1
so I followed the Android Developer Guide.
after this step:
android {
....
dataBinding {
enabled = true
}
}
Android studio Build raised an Error,
Error:Execution failed for task ':app:dataBindingProcessLayoutsDebug'.
java.lang.ExceptionInInitializerError (no error message)
I don't know what is going on, so any one has a work around?
Upvotes: 3
Views: 1342
Reputation: 7860
I'm guessing you use SQLDelight? I ran into this problem today. Apparently there is currently a conflict where you cannot use both Data Binding and SQLDelight, although it should be fixed soon. https://github.com/square/sqldelight/issues/123
An important debugging note for mysterious problems like this with no clear error message: do your Gradle build from the command line or Terminal pane in Android Studio. Mac:
./gradlew assembleDebug --stacktrace
PC:
gradlew.bat assembleDebug --stacktrace
You can also try the --info or --debug flags. Using these commands you can get much more information which can help when Googling for an answer.
Upvotes: 2