title: Program type already present: org.apache.commons.codec.Decoder
body: <p>I have been working on a project and recently added a lot of libraries. Then when I try to run the project, I am facing following error </p>
  
  <blockquote>
    <p>Program type already present: org.apache.commons.codec.Decoder</p>
  </blockquote>
  
  <p>and I do not know to fix it. I searched many times but could not found same example with me.</p>
  
  <p>Following is the app Gradle dependency list:</p>
  
  <pre><code>dependencies {
      implementation fileTree(dir: 'libs', include: ['*.jar'])
      implementation 'com.android.support:appcompat-v7:26.0.0'
      implementation "com.android.support:support-v4:26.0.0"
      implementation 'com.android.support:design:26.0.0'
      implementation project(path: ':downloader_library')
  
      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 'com.github.bumptech.glide:glide:4.8.0'
      annotationProcessor 'com.github.bumptech.glide:compiler:4.8.0'
      implementation 'com.android.volley:volley:1.1.1'
      implementation 'com.nineoldandroids:library:2.4.0'
  
  //    implementation 'com.javacodegeeks:slf4jconfig-javalogging:+'
      implementation 'org.slf4j:slf4j-api:1.7.25'
      implementation 'org.apache.commons:commons-compress:1.12'
  }
  
  configurations.all {
      resolutionStrategy.eachDependency { DependencyResolveDetails details -&gt;
          def requested = details.requested
          if (requested.group == 'org.apache.commons') {
              if (!requested.name.startsWith("multidex")) {
                  details.useVersion '1.12'
              }
          }
          if (details.requested.group == 'com.android.support'
                  &amp;&amp; !details.requested.name.contains('multidex') ) {
              details.useVersion "26.0.0"
          }
      }
  }
  </code></pre>
  
  <p>I have tried a lot of solutions like changing library version and adding resolution-strategy as mentioned in above grade code but still no solution.</p>
  
  <p>Can you guys help me to fix the problem?</p>
  
  <p>Thank you</p>