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)

Steps

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

Result:

  • 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 com.tray.android:MyLib.
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 ‘com.android.build.api.attributes.BuildTypeAttr’ with value ‘release’, attribute ‘com.android.build.api.attributes.AgpVersionAttr’ with value ‘7.1.0’ but:
- None of the consumable configurations have attributes.

Any ideas how to do an android composite build?