title: Unable to resolve dependency for ':app@debug/compileClasspath
body: <p>I am using a module Podcast-release in my app as an dependency. that has the following build types defined</p>
  
  <pre><code>    buildTypes {
      debug {
          minifyEnabled false
          useProguard false
          proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-unity.txt'
          jniDebuggable true
      }
      release {
          minifyEnabled true
          useProguard true
          proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-unity.txt'
  
      }
  }
  </code></pre>
  
  <p>Similarly, I have the same build types defined in my project. </p>
  
  <pre><code> buildTypes {
      debug {
          versionNameSuffix "-DEBUG"
          signingConfig signingConfigs.release
          applicationIdSuffix ".debug"
          resValue "string", "app_name"
      }
      release {
          buildConfigField "String", "API_ENV", "\"prod\""
          buildConfigField "String", "CAST_APP_ID", "\"" + castId + "\""
          minifyEnabled false
          shrinkResources false
          debuggable false
          zipAlignEnabled true
          proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
          signingConfig signingConfigs.release
      }
  </code></pre>
  
  <p>According to <a href="https://developer.android.com/studio/build/gradle-plugin-3-0-0-migration.html#resolve_matching_errors" rel="nofollow noreferrer">docs</a>  this should work since the dependency app and library variants are exactly the same. </p>
  
  <blockquote>
    <p>an app's debug variant automatically consumes a library's debug variant, and so on. </p>
  </blockquote>
  
  <p>Here is the error</p>
  
  <blockquote>
    <p>path\build.gradle
        Error:Error:Unable to resolve dependency for ':app@debug/compileClasspath': Could not resolve project :Podcast-release.
    Open File<br>Show Details
        Error:Error:Unable to resolve dependency for ':app@debugAndroidTest/compileClasspath': Could not resolve project :Podcast-release.
    Open File<br>Show Details
        Error:Error:Unable to resolve dependency for ':app@debugUnitTest/compileClasspath': Could not resolve project :Podcast-release.
    Open File<br>Show Details
        Error:Error:Unable to resolve dependency for ':app@release/compileClasspath': Could not resolve project :Podcast-release.
    Open File<br>Show Details
        Error:Error:Unable to resolve dependency for ':app@releaseUnitTest/compileClasspath': Could not resolve project :Podcast-release.
    Open File<br>Show Details</p>
  </blockquote>