title: Issue importing libraries for AWS
body: <p>I am trying to include the following libraries to download S3 bucket files from Amazon, based on the following reference:</p>
  <p><a href="https://github.com/awsdocs/aws-doc-sdk-examples/blob/main/javav2/example_code/cognito/src/main/java/com/example/cognito/AddLoginProvider.java" rel="nofollow noreferrer">https://github.com/awsdocs/aws-doc-sdk-examples/blob/main/javav2/example_code/cognito/src/main/java/com/example/cognito/AddLoginProvider.java</a></p>
  <pre><code>implementation platform('software.amazon.awssdk:bom:2.17.16')
  implementation 'software.amazon.awssdk:s3-transfer-manager:2.17.142-PREVIEW'
  implementation 'software.amazon.awssdk:dynamodb'
  implementation 'software.amazon.awssdk:iam'
  implementation 'software.amazon.awssdk:kinesis'
  implementation 'software.amazon.awssdk:s3'
  </code></pre>
  <p>As I add those libraries to the Gradle config I face the following error:</p>
  <pre><code>Duplicate class org.apache.http.util.VersionInfo found in modules jetified-httpcore-4.4.13 (org.apache.httpcomponents:httpcore:4.4.13) and jetified-org.apache.http.legacy (org.apache.http.legacy.jar) 
  </code></pre>
  <p>Here is the full content of the Gradle file:</p>
  <pre><code>apply plugin: 'com.android.application'
  apply plugin: 'io.fabric'
  
  
  android {
      compileSdkVersion 30
      buildToolsVersion '29.0.3'
      useLibrary  'org.apache.http.legacy'
  
      defaultConfig {
          applicationId &quot;com.xxx”.yyy
          minSdkVersion 22
          targetSdkVersion 30
          multiDexEnabled true
      }
  
      buildTypes {
          release {
              minifyEnabled true
              proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-project.txt'
          }
      }
  
      lintOptions {
          disable &quot;ResourceType&quot;
          checkReleaseBuilds false
      }
      packagingOptions {
          exclude 'com/itextpdf/io/font/cmap_info.txt'
          exclude 'com/itextpdf/io/font/cmap/*'
      }
  
      compileOptions {
          sourceCompatibility JavaVersion.VERSION_1_8
          targetCompatibility JavaVersion.VERSION_1_8
      }
  }
  
  ext {
      googlePlayServicesVersion = &quot;4.1.0&quot;
  }
  
  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.facebook.android:facebook-android-sdk:4.38.1'
      // Google
      implementation 'com.google.android.gms:play-services-auth:16.0.1'
  
      implementation project(':android-pdf-viewer')
  
      implementation 'androidx.cardview:cardview:1.0.0'
      implementation 'androidx.browser:browser:1.0.0'
  
      implementation 'androidx.appcompat:appcompat:1.0.0'
      implementation 'androidx.recyclerview:recyclerview:1.0.0'
  
      implementation 'com.google.android.gms:play-services-flags:16.0.1'
      implementation fileTree(dir: 'libs', include: ['*.jar'])
      implementation files('libs/US_export_policy.jar')
      implementation files('libs/local_policy.jar')
      implementation files('libs/bcprov-jdk15on-154.jar')
  
      implementation 'com.itextpdf:itext7-core:7.1.9'
  
      implementation 'com.android.volley:volley:1.1.1'
      implementation 'com.squareup.retrofit2:retrofit:2.5.0'
      implementation 'com.squareup.retrofit2:converter-gson:2.5.0'
  
      implementation 'com.squareup.retrofit:retrofit:1.9.0'
      implementation 'com.squareup.okhttp:okhttp:2.7.2'
      implementation 'com.squareup.okhttp3:logging-interceptor:3.8.0'
  
      implementation 'com.squareup.retrofit2:retrofit:2.0.0-beta4'
      implementation 'com.squareup.retrofit2:adapter-rxjava:2.0.0-beta4'
      implementation 'com.squareup.retrofit2:converter-gson:2.0.0-beta4'
      implementation 'org.apache.commons:commons-lang3:3.5'
  
      implementation platform('software.amazon.awssdk:bom:2.17.16')
      implementation 'software.amazon.awssdk:s3-transfer-manager:2.17.142-PREVIEW'
      implementation 'software.amazon.awssdk:dynamodb'
      implementation 'software.amazon.awssdk:iam'
      implementation 'software.amazon.awssdk:kinesis'
      implementation 'software.amazon.awssdk:s3'
  
      implementation 'com.google.android.material:material:1.0.0'
      implementation 'androidx.constraintlayout:constraintlayout:2.0.4'
      implementation 'androidx.navigation:navigation-fragment:2.2.2'
      implementation 'androidx.navigation:navigation-ui:2.2.2'
      configurations.all {
          resolutionStrategy.eachDependency { DependencyResolveDetails details -&gt;
              def requested = details.requested
              if (requested.group == 'com.android.support') {
                  if (!requested.name.startsWith(&quot;multidex&quot;)) {
                      details.useVersion '25.3.0'
                  }
              }
          }
      }
  }
  </code></pre>