title: How to resolve the Android Studio error where it cannot find the project's Manifest file?
body: <p>I am migrating my legacy project from Eclipse to Android studio. I did the following things:</p>
  
  <ul>
  <li>Export and generate gradle build files in eclipse</li>
  <li>Imported the Gradle.build file in Android Studio</li>
  <li>Changed my gradle version dependencies to: classpath 'com.android.tools.build:gradle:0.9.+'</li>
  </ul>
  
  <p>My root folder of the project contains 3 library projects: <strong>Actionbarsherlock</strong>, <strong>Authbahn</strong> and <strong>library</strong>. My root folder also contains the main project called <strong>JohelpenHulpverlener</strong>.</p>
  
  <p><img src="https://i.stack.imgur.com/im8Kr.png" alt="enter image description here"></p>
  
  <p>After resolving a lot of errors I get the following error: </p>
  
  <pre><code>Error:A problem was found with the configuration of task ':checkDebugManifest'.
  &gt; File 'C:\android\jeugdformaat\JohelpenHulpverlener\AndroidManifest.xml' specified for property 'manifest' does not exist.
  </code></pre>
  
  <p>My root build.gradle looks like this:</p>
  
  <pre><code>// Top-level build file where you can add configuration options common to all sub-projects/modules.
  buildscript {
      repositories {
          mavenCentral()
      }
      dependencies {
          classpath 'com.android.tools.build:gradle:0.9.+'
      }
  }
  
  apply plugin: 'android'
  
  dependencies {
      compile files('libs/android-support-v4.jar')
      compile project(":actionbarsherlock")
  }
  
  android {
      compileSdkVersion 17
      buildToolsVersion "19.0.3"
  
      defaultConfig {
          minSdkVersion 10
          targetSdkVersion 19
      }
  
      sourceSets {
          main {
              manifest.srcFile 'AndroidManifest.xml'
              java.srcDirs = ['src']
              resources.srcDirs = ['src']
              res.srcDirs = ['res']
          }
      }
  }
  </code></pre>
  
  <p>My build.gradle in the main project looks like this:</p>
  
  <pre><code>apply plugin: 'android'
  
  dependencies {
      compile fileTree(dir: 'libs', include: '*.jar')
      compile project(':library')
      compile project(':actionbarsherlock')
      compile project(':autobahn')
  }
  
  android {
      compileSdkVersion 19
      buildToolsVersion "19.0.0"
  
      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')
      }
  }
  </code></pre>
  
  <p>I am trying to understand this, hopefully someone can help me out here!</p>