title: Can not add submodule to android project
body: <p>I am trying to import my submodule to my project but it always gives that error. </p>
  
  <pre><code>Unable to resolve dependency for ':app@debug/compileClasspath': Could not resolve project :sanservicelibrary.
  Open File
  Show Details
  
  
  Unable to resolve dependency for ':app@debugAndroidTest/compileClasspath': Could not resolve project :sanservicelibrary.
  Open File
  Show Details
  
  
  Unable to resolve dependency for ':app@debugUnitTest/compileClasspath': Could not resolve project :sanservicelibrary.
  Open File
  Show Details
  
  
  Unable to resolve dependency for ':app@release/compileClasspath': Could not resolve project :sanservicelibrary.
  Open File
  Show Details
  
  
  Unable to resolve dependency for ':app@releaseUnitTest/compileClasspath': Could not resolve project :sanservicelibrary.
  Open File
  Show Details
  </code></pre>
  
  <p>Those are didn't help</p>
  
  <p><a href="https://stackoverflow.com/questions/52805588/cant-compile-project-with-modules">Cant compile project with modules</a></p>
  
  <p><a href="https://stackoverflow.com/questions/51031514/unable-to-resolve-dependency-for-appdebugunittest-compileclasspath-appdeb">Unable to resolve dependency for &#39;:app@debugUnitTest/compileClasspath&#39;, :app@debugAndroidTest/compileClasspath</a></p>
  
  <p>App gradle.</p>
  
  <pre><code>apply plugin: 'com.android.application'
  
  android {
      compileOptions {
          sourceCompatibility JavaVersion.VERSION_1_8
          targetCompatibility JavaVersion.VERSION_1_8
      }
  
      compileSdkVersion 27
      defaultConfig {
          applicationId ".."
          minSdkVersion 18
          targetSdkVersion 27
          versionCode 13
          versionName "Beta 1.11"
          testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
          vectorDrawables.useSupportLibrary = true
          multiDexEnabled true
      }
      buildTypes {
          release {
              minifyEnabled false
              proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
          }
      }
      lintOptions {
          checkReleaseBuilds false
          // Or, if you prefer, you can continue to check for errors in release builds,
          // but continue the build even when errors are found:
          abortOnError false
      }
  }
  
  dependencies {
      implementation fileTree(dir: 'libs', include: ['*.jar'])
      implementation "com.android.support:design:$supportLibVer"
      implementation "com.android.support:appcompat-v7:$supportLibVer"
      implementation 'com.android.support.constraint:constraint-layout:1.1.3'
      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:':libname', configuration: 'default')
  
  }
  
  
  }
  </code></pre>
  
  <p>library gradle</p>
  
  <pre><code>apply plugin: 'com.android.library'
  
  android {
      compileSdkVersion 28
      defaultConfig {
          applicationId "..."
          minSdkVersion 18
          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'
      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>and I have</p>
  
  <pre><code>include ':app', ':libname'
  </code></pre>
  
  <p>in settings gradle</p>