title: Unable to resolve dependency for ':app@debug/compileClasspath': when importing module in Android Studio
body: <p>I am trying to import another project (ExampleApp) as a library module into my current project.</p>
  
  <p>I did this through File -> New -> Import Module.</p>
  
  <p>I then added the dependency in the build.gradle of my main app. Here is the whole code to build.gradle of my main app:</p>
  
  <pre><code>apply plugin: 'com.android.application'
  
  android {
      compileSdkVersion 26
      defaultConfig {
          applicationId "com.paigger.mainmodule"
          minSdkVersion 16
          targetSdkVersion 26
          versionCode 1
          versionName "1.0"
          testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
      }
      buildTypes {
          release {
              minifyEnabled false
              proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
          }
      }
  }
  
  dependencies {
      implementation fileTree(dir: 'libs', include: ['*.jar'])
      implementation 'com.android.support:appcompat-v7:26.1.0'
      implementation 'com.android.support.constraint:constraint-layout:1.1.2'
      testImplementation 'junit:junit:4.12'
      androidTestImplementation 'com.android.support.test:runner:1.0.2'
      androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
      implementation project(':ExampleApp')
  }
  </code></pre>
  
  <p>I then made the following change  to settings.gradle</p>
  
  <pre><code>include ':app' , ':ExampleApp'
  </code></pre>
  
  <p>However, I get this errors: </p>
  
  <pre><code>Unable to resolve dependency for ':app@debug/compileClasspath': Could not resolve project :ExampleApp.
  Open File
  Show Details
  
  
  Unable to resolve dependency for ':app@debugAndroidTest/compileClasspath': Could not resolve project :ExampleApp.
  Open File
  Show Details
  
  
  Unable to resolve dependency for ':app@debugUnitTest/compileClasspath': Could not resolve project :ExampleApp.
  Open File
  Show Details
  
  
  Unable to resolve dependency for ':app@release/compileClasspath': Could not resolve project :ExampleApp.
  Open File
  Show Details
  
  
  Unable to resolve dependency for ':app@releaseUnitTest/compileClasspath': Could not resolve project :ExampleApp.
  Open File
  Show Details
  </code></pre>
  
  <p>How do I fix this errors?</p>