# Simple composite build for android not working

**URL:** <https://discuss.gradle.org/t/simple-composite-build-for-android-not-working/43713>\
**Category:** Help/Discuss\
**Created:** [August 22, 2022, 10:16am UTC](https://discuss.gradle.org/t/simple-composite-build-for-android-not-working/43713 "2022-08-22T10:16:12Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![deanhiller](https://sea1.discourse-cdn.com/gradle/user_avatar/discuss.gradle.org/deanhiller/32/5516_2.png) [@deanhiller](https://discuss.gradle.org/u/deanhiller)\
**Post date:** [August 22, 2022, 10:16am UTC](https://discuss.gradle.org/t/simple-composite-build-for-android-not-working/43713/1 "2022-08-22T10:16:12Z")

</div>

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)

> **[GitHub - deanhiller/compositeAndroid](https://github.com/deanhiller/compositeAndroid)**
>
> Contribute to deanhiller/compositeAndroid development by creating an account on GitHub.

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?
