# Gradle module with source, can't find module

**URL:** <https://discuss.gradle.org/t/gradle-module-with-source-cant-find-module/35141>\
**Category:** Help/Discuss\
**Created:** [March 4, 2020, 10:36am UTC](https://discuss.gradle.org/t/gradle-module-with-source-cant-find-module/35141 "2020-03-04T10:36:23Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![josephkandi](https://sea1.discourse-cdn.com/gradle/user_avatar/discuss.gradle.org/josephkandi/32/8346_2.png) [@josephkandi](https://discuss.gradle.org/u/josephkandi)\
**Post date:** [March 4, 2020, 10:36am UTC](https://discuss.gradle.org/t/gradle-module-with-source-cant-find-module/35141/1 "2020-03-04T10:36:23Z")

</div>

I would like to add a module with source into an Android project. I followed the guide on creating a , [Java Library](https://docs.gradle.org/current/userguide/building_java_projects.html). I get an error when i try to add the git library a module with source into my project.

`ERROR: Unable to resolve dependency for ':app@debug/compileClasspath': Could not find any version that matches com.demo:util.`

Can anyone tell me exactly what needs to be in the library so that this works. I have another library done by a different developer, when i use that library project it works but i cant figure exactly why it does work.

Here is the `build.gradle` of the demo library

```gradle
plugins {
    // Apply the java-library plugin to add support for Java Library
    id 'java-library'
}

version = '0.1.0'
group = 'com.demo'

repositories {
    // Use jcenter for resolving dependencies.
    // You can declare any Maven/Ivy/file repository here.
    jcenter()
}

dependencies {
    // This dependency is exported to consumers, that is to say found on their compile classpath.
    api 'org.apache.commons:commons-math3:3.6.1'

    // This dependency is used internally, and not exposed to consumers on their own compile classpath.
    implementation 'com.google.guava:guava:28.1-jre'

    // Use JUnit test framework
    testImplementation 'junit:junit:4.12'
}

jar {
    manifest {
        attributes('Implementation-Title': project.name,
                    'Implementation-Version': project.version)
    }
}

```

and this is the `settings.gradle` of the test app

```gradle
include ':app'
rootProject.name='Library Demo'

sourceControl {
    gitRepository("/Users/joseph/Developer/Android/Gradle/demo"){
        producesModule("com.demo:util")
    }
}

```

and the the `build.gradle`

```gradle
dependencies {
    implementation('com.demo:util')
}

```
