Search code examples
androidandroid-databindingandroid-bundle

Android On Demand delivery data binding


I'm trying to create a project with on demand delivery.

I created a simple project with one activity which contains a button that will open another application which is added as a module.

I followed the instruction from documentation. But when I try to compile the project, this error appears.

Data binding is enabled in both modules and I don't know why this error appears.

Execution failed for task ':rewrite:dataBindingExportFeatureInfoDebug'.  
java.util.NoSuchElementException (no error message)

Solution

  • Following the steps on documentation. The feature module didn't have a dependency with the base module.

    To solve the problem I added in the build.gradle of the feature module next line:

     implementation project(':app')