MultiProject dependencies don't recognize other project's packages (Android Project)


I have a MultiProject structure of


/Project A

/Project A

/Project A


/Project B

build.gradle build.gradle settings.gradle

The weird structure is a result of importing Project A as a submodule from Git, but my problem arises when I try to include Project A as a dependency for Project B.

My Project B build.gradle has the following code

dependencies {
      compile project(':Connect')
    compile project(':Connect:libraries:ViewPagerIndicator')
    compile project(':Connect:libraries:SlidingUpPanel')
    compile project(':Connect:libraries:LiveWire')
    compile fileTree(dir: 'libs', include: ['*.jar'])

where Connect is Project A.

When I compile and run this I get an error saying “package com.projecta.connect doesn’t exist” when I attempt to import any files within Project B from Project A.

Is it possible to fix this?

Thanks, Greg