# compose


06/13/2020, 1:16 PM
Could compose by any chance cause problem when used along with data binding. There is another part of the code that uses data binding. I am getting an error related to data binding after installing compose. I have created a gist of the stack trace here. I am still struggling to make compose work with my existing project. Any clue would be appreciated. I have added the following to my build.gradle
Copy code
composeOptions {
        kotlinCompilerVersion "1.3.70-dev-withExperimentalGoogleExtensions-20200424"
        kotlinCompilerExtensionVersion "0.1.0-dev13"
I am on a multi module project, and I have added the option to both build.gradle files.

Mark Murphy

06/13/2020, 1:57 PM
That's quite a build error. My gut says that some combination of the experimental Kotlin compiler and the Compose compiler plugin are not playing nice with your data binding. If you have not done so already, clean the project to see if the problem is precompiled. If that does not help, you might want to create a scrap project, enable data binding, enable Compose, and see if the problem shows up there. If it does, then that would make a great project to attach to a bug report. If it works in the scrap project, then perhaps slowly modify it to more closely resemble the real project, until the problem shows up.


06/14/2020, 5:35 PM
Thank you for the suggestion. I did as you suggested and it appears a new project with support for compose and data binding works well. Perhaps I have to look for other pitfalls in my code.
👍 1