title: Error in library built with jitpack: Unable to resolve dependency for ':app@debug/compileClasspath'
body: <p>I am trying to publish my android library on jitpack.io but when I tried to add dependency to test my artifact I am getting this error:</p>
  
  <pre><code>Unable to resolve dependency for ':app@debug/compileClasspath': Could not resolve com.github.pashaoleynik97:GSBarcodeScannerHelper:0.1.1-alpha.
  Open File
  Show Details
  
  
  Unable to resolve dependency for ':app@debugAndroidTest/compileClasspath': Could not resolve com.github.pashaoleynik97:GSBarcodeScannerHelper:0.1.1-alpha.
  Open File
  Show Details
  
  
  Unable to resolve dependency for ':app@debugUnitTest/compileClasspath': Could not resolve com.github.pashaoleynik97:GSBarcodeScannerHelper:0.1.1-alpha.
  Open File
  Show Details
  
  
  Unable to resolve dependency for ':app@release/compileClasspath': Could not resolve com.github.pashaoleynik97:GSBarcodeScannerHelper:0.1.1-alpha.
  Open File
  Show Details
  
  
  Unable to resolve dependency for ':app@releaseUnitTest/compileClasspath': Could not resolve com.github.pashaoleynik97:GSBarcodeScannerHelper:0.1.1-alpha.
  Open File
  Show Details
  </code></pre>
  
  <p>My gradle files in library project are listed below.</p>
  
  <p>My <code>build.gradle</code> (app):</p>
  
  <pre><code>apply plugin: 'com.android.application'
  
  android {
      compileSdkVersion 28
      defaultConfig {
          applicationId "com.github.pashaoleynik97.gsbarcodescannerhelperdemo"
          minSdkVersion 21
          targetSdkVersion 28
          versionCode 2
          versionName "1.1"
          testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
      }
      buildTypes {
          release {
              minifyEnabled false
              proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
          }
      }
  }
  
  dependencies {
      implementation fileTree(include: ['*.jar'], dir: 'libs')
      implementation 'com.android.support:appcompat-v7:28.0.0'
      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(':gsbarcodescannerhelper')
  }
  </code></pre>
  
  <p>My <code>build.gradle</code> (gsbarcodescannerhelper):</p>
  
  <pre><code>apply plugin: 'com.android.library'
  group='com.github.pashaoleynik97;'
  
  android {
      compileSdkVersion 28
  
  
  
      defaultConfig {
          minSdkVersion 21
          targetSdkVersion 28
          versionCode 2
          versionName "0.1.1"
  
          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'
      implementation 'org.jetbrains.kotlin:kotlin-stdlib:1.3.10'
      implementation(name: 'generalscan-sdk-1.0.6', ext:'aar')
  }
  </code></pre>
  
  <p>And finally, my <code>build.gradle</code> (project):</p>
  
  <pre><code>buildscript {
  
      repositories {
          google()
          jcenter()
      }
      dependencies {
          classpath 'com.android.tools.build:gradle:3.2.0'
          classpath 'com.github.dcendents:android-maven-gradle-plugin:1.4.1'
  
          // NOTE: Do not place your application dependencies here; they belong
          // in the individual module build.gradle files
      }
  }
  
  allprojects {
      repositories {
          google()
          jcenter()
          flatDir {
              dirs project(':gsbarcodescannerhelper').file('libs')
          }
          maven { url 'https://jitpack.io' }
      }
  }
  
  task clean(type: Delete) {
      delete rootProject.buildDir
  }
  </code></pre>
  
  <p>I pushed my project on github, created release (through github web interface), then went to jitpack.io and published my library. But when I tried to add this library to my new test project I had errors (listed in top of this post). What I am doing wrong?</p>
  
  <p><strong>UPD</strong></p>
  
  <p>I also tried to add <code>classpath 'com.github.dcendents:android-maven-gradle-plugin:2.1'</code> like in this docs: <a href="https://jitpack.io/docs/ANDROID/" rel="nofollow noreferrer">https://jitpack.io/docs/ANDROID/</a>
  But result remains the same.</p>
  
  <p><strong>UPD 2</strong></p>
  
  <p>Created issue: <a href="https://github.com/jitpack/jitpack.io/issues/3758" rel="nofollow noreferrer">https://github.com/jitpack/jitpack.io/issues/3758</a></p>