title: Unable to resolve dependency for ':app@debugUnitTest/compileClasspath', :app@debugAndroidTest/compileClasspath
body: <p>Situation:</p>
  
  <ol>
  <li>Create the simplest project </li>
  <li>Add to the project module as File -> New -> New module <strong>"Phone &amp; Tablet Module"</strong></li>
  <li>Add the dependency on the module</li>
  </ol>
  
  <p><strong>And get errors:</strong></p>
  
  <p>Unable to resolve dependency for ':app@debug/compileClasspath': Could not resolve project :testmodule.</p>
  
  <p>Unable to resolve dependency for ':app@debugAndroidTest/compileClasspath': Could not resolve project :testmodule.</p>
  
  <p>Unable to resolve dependency for ':app@debugUnitTest/compileClasspath': Could not resolve project :testmodule.</p>
  
  <p>Unable to resolve dependency for ':app@release/compileClasspath': Could not resolve project :testmodule.</p>
  
  <p>Unable to resolve dependency for ':app@releaseUnitTest/compileClasspath': Could not resolve project :testmodule.</p>
  
  <p>Below are the project files:</p>
  
  <p><strong>Project:</strong></p>
  
  <pre><code>buildscript {
  
      repositories {
          google()
          jcenter()
      }
      dependencies {
          classpath 'com.android.tools.build:gradle:3.1.3'
  
  
          // NOTE: Do not place your application dependencies here; they belong
          // in the individual module build.gradle files
      }
  }
  
  allprojects {
      repositories {
          google()
          jcenter()
      }
  }
  
  task clean(type: Delete) {
      delete rootProject.buildDir
  }
  </code></pre>
  
  <p><strong>Module: app</strong></p>
  
  <pre><code>apply plugin: 'com.android.application'
  
  android {
      compileSdkVersion 28
      defaultConfig {
          applicationId "com.pawga.test00"
          minSdkVersion 14
          targetSdkVersion 28
          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:28.0.0-alpha3'
      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(path: ':testmodule')
  }
  </code></pre>
  
  <p><strong>Module: testmodule</strong></p>
  
  <pre><code>apply plugin: 'com.android.application'
  
  android {
      compileSdkVersion 28
  
  
  
      defaultConfig {
          applicationId "com.pawga.testmodule"
          minSdkVersion 14
          targetSdkVersion 28
          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:28.0.0-alpha3'
      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'
  }
  </code></pre>
  
  <p><strong>gradle-wrapper.properties</strong></p>
  
  <pre><code>#Mon Jun 25 22:51:52 2018
  distributionBase=GRADLE_USER_HOME
  distributionPath=wrapper/dists
  zipStoreBase=GRADLE_USER_HOME
  zipStorePath=wrapper/dists
  distributionUrl=https\://services.gradle.org/distributions/gradle-4.4-all.zip
  </code></pre>
  
  <p><strong>settings.gradle</strong></p>
  
  <pre><code>include ':app', ':testmodule'
  </code></pre>
  
  <p>Note:
  If the module type is "Android Library" (Point "two" above), then there are no such errors.</p>
  
  <p>For such a simple project, where everything is by default, there should not be such errors. What's wrong?</p>