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
- git clone
- cd MyApplication
- ./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?