Project with path '' could not be found in root project ''
<p>I have just imported a project from eclipse. The project consists of an android library project linking to the main apk project.</p>

<p>Folder structure is simple I have</p>

<pre><code>rootFolder    
1) carEgiriLibrary    
2) carEgiriPuneBangalore
</code></pre>

<p>I get this error when Gradle try's to sync.</p>

<blockquote>
  <blockquote>
    <p>Error:(5, 0) Project with path ':personal:mCruiseOn:carEgiriLibrary' could not be found in root project 'carEgiriPuneBangalore'.
    Open File</p>
  </blockquote>
</blockquote>

<pre><code>Gradle-wrapper.properties

   #Wed Apr 10 15:27:10 PDT 2013
   distributionBase=GRADLE_USER_HOME
   distributionPath=wrapper/dists
   zip
   StoreBase=GRADLE_USER_HOME
   zipStorePath=wrapper/dists
   distributionUrl=https\://services.gradle.org/distributions/gradle-2.2.1-all.zip
</code></pre>

<p>gradle.build </p>

<pre><code>apply plugin: 'android'

dependencies {
    compile fileTree(dir: 'libs', include: '*.jar')
    compile project(':personal:mCruiseOn:carEgiriLibrary')
    compile 'com.google.android.gms:play-services:8.4.0'
    //compile project(':adt-bundle-linux-x86-20140702:sdk:extras:google:google_play_services:libproject:google-play-services_lib')
 }
</code></pre>

<p><strong>Edit, entire build.gradle</strong></p>

<pre><code>apply plugin: 'android'

dependencies {
    compile fileTree(dir: 'libs', include: '*.jar')
    compile project(':personal:mCruiseOn:carEgiriLibrary')
    compile 'com.google.android.gms:play-services:8.4.0'
    //compile project(':adt-bundle-linux-x86-20140702:sdk:extras:google:google_play_services:libproject:google-play-services_lib')
}

android {
    compileSdkVersion 10
    buildToolsVersion "21.1.2"

    sourceSets {
        main {
            manifest.srcFile 'AndroidManifest.xml'
            java.srcDirs = ['src']
            resources.srcDirs = ['src']
            aidl.srcDirs = ['src']
            renderscript.srcDirs = ['src']
            res.srcDirs = ['res']
            assets.srcDirs = ['assets']
        }

        // Move the tests to tests/java, tests/res, etc...
        instrumentTest.setRoot('tests')

        // Move the build types to build-types/&lt;type&gt;
        // For instance, build-types/debug/java, build-types/debug/AndroidManifest.xml, ...
        // This moves them out of them default location under src/&lt;type&gt;/... which would
        // conflict with src/ being used by the main source set.
        // Adding new build types or product flavors should be accompanied
        // by a similar customization.
        debug.setRoot('build-types/debug')
        release.setRoot('build-types/release')
    }
}
buildscript {
    repositories {
        mavenCentral()
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:1.5.0'
    }
}

allprojects {
    repositories {
        mavenCentral()
    }
}
</code></pre>