title: gradle unresolved dependencies
body: <p>I have a problem in the Gradle files. As I have updated the Android Studio I had to update the dependencies as well, but I'm getting unresolved dependencies.</p>
  
  <p><strong>Project gradle:</strong></p>
  
  <pre><code>buildscript {
  repositories {
      mavenCentral()
  
      maven { url 'https://maven.fabric.io/public' }       
      google()
  
  }
  dependencies {
      classpath 'com.android.tools.build:gradle:3.4.1'
      classpath 'io.fabric.tools:gradle:1.29.0'
      classpath 'com.novoda:bintray-release:0.4.1'
      classpath 'com.google.gms:google-services:4.1.0'
  
  
  }
  
  }
  
  allprojects {
  repositories {
  
      maven { url 'https://maven.fabric.io/public' }
  
      jcenter()
  }
  }
  </code></pre>
  
  <p><strong>app gradle:</strong></p>
  
  <pre><code>apply plugin: 'com.android.application'
  apply plugin: 'com.google.gms.google-services'
  apply plugin: 'io.fabric'
  
  
  android {
  compileSdkVersion 28
  buildToolsVersion '28.0.3'
  useLibrary  'org.apache.http.legacy'
  
  defaultConfig {
      applicationId "com.packagename"
      minSdkVersion 21
      targetSdkVersion 28
      multiDexEnabled true
  }
  
  buildTypes {
      release {
          minifyEnabled true
          proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-project.txt'
      }
  }
  
  lintOptions {
      disable "ResourceType"
  }
  }
  
  ext {
      googlePlayServicesVersion = "4.2.0"
  }
  
  
  dependencies {
  implementation files('libs/icu4j-4_4_2_2.jar')
  implementation files('libs/jsoup-1.6.3.jar')
  implementation files('libs/ksoap2-android-assembly-2.6.0-jar-with-dependencies.jar')
  implementation files('libs/zip4j_1.2.6.jar')
  
  implementation('com.crashlytics.sdk.android:crashlytics:2.9.9@aar') {
      transitive = true;
  }
  
  implementation 'com.facebook.android:facebook-android-sdk:4.38.1'
  // Google
  implementation 'com.google.android.gms:play-services-auth:16.0.1'
  
  implementation'com.google.firebase:firebase-auth:16.1.0'
  
  // Firebase
  implementation 'com.google.firebase:firebase-messaging:17.3.4'
  implementation 'com.google.firebase:firebase-core:16.0.3'
  
  
  implementation 'com.google.android.gms:play-services-ads:17.2.1'
  
  implementation project(':pdflibrary')
  implementation 'com.android.support:support-compat:27.0.2'
  implementation 'com.android.support:cardview-v7:27.0.2'
  implementation 'com.android.support:customtabs:27.0.2'
  
  implementation files('libs/junit-4.3.jar')
  
  implementation 'com.android.support:appcompat-v7:28.0.0'
  implementation 'com.android.support:recyclerview-v7:28.0.0'
  
  implementation 'com.google.android.gms:play-services-flags:16.0.1'
  implementation 'com.google.android.gms:play-services-basement:16.0.1'
  
  implementation fileTree(dir: 'libs', include: ['*.jar'])
  }
  </code></pre>
  
  <p><strong>pdfLibrary gradle:</strong></p>
  
  <pre><code>apply plugin: 'com.android.library'
  apply plugin: 'com.novoda.bintray-release'
  
  android {
  compileSdkVersion 28
  buildToolsVersion '28.0.3'
  
  
  
  defaultConfig {
      minSdkVersion 24
      targetSdkVersion 28
      versionCode 1
      versionName '1'
  }
  
  sourceSets {
      main {
          jniLibs.srcDirs = ['libs']
      }
  }
  }
  
  dependencies {
      implementation fileTree(include: ['*.jar'], dir: 'libs')
  }
  
  publish {
      userOrg = 'thefinestartist'
      groupId = 'com.thefinestartist'
      artifactId = 'finestwebview'
      publishVersion = '1'
      desc = 'Beautiful and customizable Android Activity that shows web pages within an app.'
      website = 'https://github.com/TheFinestArtist/FinestWebView-Android'
  }
  </code></pre>
  
  <p>This is the errors I'm getting knowing that min-sdk is set to 24 and I only in the gradle and I have removed it from both manifests (app &amp; pdfLibrary):</p>
  
  <p><a href="https://i.stack.imgur.com/poSQW.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/poSQW.jpg" alt="enter image description here"></a></p>
  
  <p>I have tried suggestion from other SO questions, but nothing worked.</p>