Simple composite build for android not working

I created a repo on just a simple android library and a simple android project using that library via a composite build that doesn’t seem to work. (You can view the last commit is enabling composite build)


  1. git clone
  2. cd MyApplication
  3. ./gradlew build


  • What went wrong:
    Could not determine the dependencies of task ‘:app:lintVitalReportRelease’.

Could not resolve all task dependencies for configuration ‘:app:releaseRuntimeClasspath’.
Could not resolve
Required by:
project :app
No matching configuration of project :MyLib was found. The consumer was configured to find a runtime of a component, preferably optimized for Android, as well as attribute ‘’ with value ‘release’, attribute ‘’ with value ‘7.1.0’ but:
- None of the consumable configurations have attributes.

Any ideas how to do an android composite build?