com.android.build.api.transform.TransformException: java.util.zip.ZipException: duplicate entry: b.class












0















used gradle for my android project. i recently add some jars files (al last).but after adding thisi got build error .my gradle file is



apply plugin: 'com.android.application'

android {
compileSdkVersion 26
buildToolsVersion "26.0.0"
defaultConfig {
applicationId "com.myapplicationpck"
minSdkVersion 19
targetSdkVersion 26
versionCode 44
versionName "4.9"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
multiDexEnabled = true
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
dexOptions {
javaMaxHeapSize "4g"
}

sourceSets {
main.jni.srcDirs =
main.jniLibs.srcDirs = ['libs']
}

packagingOptions {
exclude 'META-INF/LICENSE'
exclude 'META-INF/ASL2.0'
exclude 'VERSION.txt'

}

}

android {
useLibrary 'org.apache.http.legacy'
}


repositories {
mavenCentral()
maven {
url "https://jitpack.io"
}
maven {
url 'https://maven.google.com'
}

}

dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
exclude group: 'com.android.support', module: 'support-annotations'
})

compile files('libs/android-viewbadger.jar')
compile project(':libraryMobilePaymentSDK')
compile('com.jakewharton:butterknife:8.6.0') {
exclude module: 'support-compat'
}
compile 'xml-security:xmlsec:1.3.0'
compile 'com.android.support:appcompat-v7:24.2.1'
compile 'com.google.firebase:firebase-messaging:10.0.1'
compile 'com.google.firebase:firebase-core:10.0.1'
compile 'com.facebook.android:facebook-android-sdk:4.0.0'
compile 'com.github.aakira:expandable-layout:1.4.2@aar'
compile 'com.android.support:cardview-v7:24.2.1'
compile 'com.mcxiaoke.volley:library-aar:1.0.0'
compile 'com.google.android.gms:play-services:10.0.1'
compile 'com.squareup.picasso:picasso:2.5.2'
compile 'com.android.support:recyclerview-v7:24.2.1'
compile 'com.android.support:support-v4:24.2.1'
compile 'com.android.support:design:24.2.1'
compile 'org.apache.httpcomponents:httpcore:4.4.1'
compile 'org.apache.httpcomponents:httpclient:4.5'
compile 'com.android.support:multidex:1.0.1'
compile 'rongi.rotate-layout:rotate-layout:2.0.0'
compile 'com.roomorama:caldroid:3.0.1'
compile 'com.google.guava:guava:18.0'
compile 'org.jsoup:jsoup:1.9.1'
compile 'com.android.support.test.espresso:espresso-core:2.2.2'
compile 'gun0912.ted:tedpermission:1.0.3'
compile 'com.android.support.constraint:constraint-layout:1.0.2'
compile 'com.intuit.sdp:sdp-android:1.0.3'
compile 'com.github.adhishlal:gifloader:1.1'
compile('com.dlazaro66.qrcodereaderview:qrcodereaderview:2.0.2') {
exclude group: 'com.google.zxing'
}
compile 'com.github.javiersantos:BottomDialogs:1.2.1'
testCompile 'junit:junit:4.12'
annotationProcessor 'com.jakewharton:butterknife-compiler:8.6.0'

// new added jar files

compile files('libs/simple-xml-2.7.1.jar')
compile files('libs/mpaysdk_release_v.1.0.4.jar')
compile files('libs/jackson-core-asl-1.9.13.jar')
compile files('libs/jackson-mapper-asl-1.9.13.jar')
compile files('libs/bcprov-ext-jdk15on-154.jar')
compile files('libs/commons-io-2.4.jar')
compile files('libs/commons-lang-2.3.jar')
compile files('libs/core-2.3.0.jar')
compile files('libs/meSdk-3.6.4-SNAPSHOT7.jar')
compile files('libs/rsadukpt.jar')


}
apply plugin: 'com.google.gms.google-services'
apply plugin: 'com.jakewharton.butterknife'


now after build i got error like this:



Error:Execution failed for task ':app:transformClassesWithJarMergingForDebug'.




com.android.build.api.transform.TransformException: java.util.zip.ZipException: duplicate entry: b.class




how i can sove this issue .anyone please help me for overcome this problem.thank in advanced.










share|improve this question



























    0















    used gradle for my android project. i recently add some jars files (al last).but after adding thisi got build error .my gradle file is



    apply plugin: 'com.android.application'

    android {
    compileSdkVersion 26
    buildToolsVersion "26.0.0"
    defaultConfig {
    applicationId "com.myapplicationpck"
    minSdkVersion 19
    targetSdkVersion 26
    versionCode 44
    versionName "4.9"
    testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
    multiDexEnabled = true
    }
    buildTypes {
    release {
    minifyEnabled false
    proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
    }
    }
    dexOptions {
    javaMaxHeapSize "4g"
    }

    sourceSets {
    main.jni.srcDirs =
    main.jniLibs.srcDirs = ['libs']
    }

    packagingOptions {
    exclude 'META-INF/LICENSE'
    exclude 'META-INF/ASL2.0'
    exclude 'VERSION.txt'

    }

    }

    android {
    useLibrary 'org.apache.http.legacy'
    }


    repositories {
    mavenCentral()
    maven {
    url "https://jitpack.io"
    }
    maven {
    url 'https://maven.google.com'
    }

    }

    dependencies {
    compile fileTree(include: ['*.jar'], dir: 'libs')
    androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
    exclude group: 'com.android.support', module: 'support-annotations'
    })

    compile files('libs/android-viewbadger.jar')
    compile project(':libraryMobilePaymentSDK')
    compile('com.jakewharton:butterknife:8.6.0') {
    exclude module: 'support-compat'
    }
    compile 'xml-security:xmlsec:1.3.0'
    compile 'com.android.support:appcompat-v7:24.2.1'
    compile 'com.google.firebase:firebase-messaging:10.0.1'
    compile 'com.google.firebase:firebase-core:10.0.1'
    compile 'com.facebook.android:facebook-android-sdk:4.0.0'
    compile 'com.github.aakira:expandable-layout:1.4.2@aar'
    compile 'com.android.support:cardview-v7:24.2.1'
    compile 'com.mcxiaoke.volley:library-aar:1.0.0'
    compile 'com.google.android.gms:play-services:10.0.1'
    compile 'com.squareup.picasso:picasso:2.5.2'
    compile 'com.android.support:recyclerview-v7:24.2.1'
    compile 'com.android.support:support-v4:24.2.1'
    compile 'com.android.support:design:24.2.1'
    compile 'org.apache.httpcomponents:httpcore:4.4.1'
    compile 'org.apache.httpcomponents:httpclient:4.5'
    compile 'com.android.support:multidex:1.0.1'
    compile 'rongi.rotate-layout:rotate-layout:2.0.0'
    compile 'com.roomorama:caldroid:3.0.1'
    compile 'com.google.guava:guava:18.0'
    compile 'org.jsoup:jsoup:1.9.1'
    compile 'com.android.support.test.espresso:espresso-core:2.2.2'
    compile 'gun0912.ted:tedpermission:1.0.3'
    compile 'com.android.support.constraint:constraint-layout:1.0.2'
    compile 'com.intuit.sdp:sdp-android:1.0.3'
    compile 'com.github.adhishlal:gifloader:1.1'
    compile('com.dlazaro66.qrcodereaderview:qrcodereaderview:2.0.2') {
    exclude group: 'com.google.zxing'
    }
    compile 'com.github.javiersantos:BottomDialogs:1.2.1'
    testCompile 'junit:junit:4.12'
    annotationProcessor 'com.jakewharton:butterknife-compiler:8.6.0'

    // new added jar files

    compile files('libs/simple-xml-2.7.1.jar')
    compile files('libs/mpaysdk_release_v.1.0.4.jar')
    compile files('libs/jackson-core-asl-1.9.13.jar')
    compile files('libs/jackson-mapper-asl-1.9.13.jar')
    compile files('libs/bcprov-ext-jdk15on-154.jar')
    compile files('libs/commons-io-2.4.jar')
    compile files('libs/commons-lang-2.3.jar')
    compile files('libs/core-2.3.0.jar')
    compile files('libs/meSdk-3.6.4-SNAPSHOT7.jar')
    compile files('libs/rsadukpt.jar')


    }
    apply plugin: 'com.google.gms.google-services'
    apply plugin: 'com.jakewharton.butterknife'


    now after build i got error like this:



    Error:Execution failed for task ':app:transformClassesWithJarMergingForDebug'.




    com.android.build.api.transform.TransformException: java.util.zip.ZipException: duplicate entry: b.class




    how i can sove this issue .anyone please help me for overcome this problem.thank in advanced.










    share|improve this question

























      0












      0








      0


      1






      used gradle for my android project. i recently add some jars files (al last).but after adding thisi got build error .my gradle file is



      apply plugin: 'com.android.application'

      android {
      compileSdkVersion 26
      buildToolsVersion "26.0.0"
      defaultConfig {
      applicationId "com.myapplicationpck"
      minSdkVersion 19
      targetSdkVersion 26
      versionCode 44
      versionName "4.9"
      testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
      multiDexEnabled = true
      }
      buildTypes {
      release {
      minifyEnabled false
      proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
      }
      }
      dexOptions {
      javaMaxHeapSize "4g"
      }

      sourceSets {
      main.jni.srcDirs =
      main.jniLibs.srcDirs = ['libs']
      }

      packagingOptions {
      exclude 'META-INF/LICENSE'
      exclude 'META-INF/ASL2.0'
      exclude 'VERSION.txt'

      }

      }

      android {
      useLibrary 'org.apache.http.legacy'
      }


      repositories {
      mavenCentral()
      maven {
      url "https://jitpack.io"
      }
      maven {
      url 'https://maven.google.com'
      }

      }

      dependencies {
      compile fileTree(include: ['*.jar'], dir: 'libs')
      androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
      exclude group: 'com.android.support', module: 'support-annotations'
      })

      compile files('libs/android-viewbadger.jar')
      compile project(':libraryMobilePaymentSDK')
      compile('com.jakewharton:butterknife:8.6.0') {
      exclude module: 'support-compat'
      }
      compile 'xml-security:xmlsec:1.3.0'
      compile 'com.android.support:appcompat-v7:24.2.1'
      compile 'com.google.firebase:firebase-messaging:10.0.1'
      compile 'com.google.firebase:firebase-core:10.0.1'
      compile 'com.facebook.android:facebook-android-sdk:4.0.0'
      compile 'com.github.aakira:expandable-layout:1.4.2@aar'
      compile 'com.android.support:cardview-v7:24.2.1'
      compile 'com.mcxiaoke.volley:library-aar:1.0.0'
      compile 'com.google.android.gms:play-services:10.0.1'
      compile 'com.squareup.picasso:picasso:2.5.2'
      compile 'com.android.support:recyclerview-v7:24.2.1'
      compile 'com.android.support:support-v4:24.2.1'
      compile 'com.android.support:design:24.2.1'
      compile 'org.apache.httpcomponents:httpcore:4.4.1'
      compile 'org.apache.httpcomponents:httpclient:4.5'
      compile 'com.android.support:multidex:1.0.1'
      compile 'rongi.rotate-layout:rotate-layout:2.0.0'
      compile 'com.roomorama:caldroid:3.0.1'
      compile 'com.google.guava:guava:18.0'
      compile 'org.jsoup:jsoup:1.9.1'
      compile 'com.android.support.test.espresso:espresso-core:2.2.2'
      compile 'gun0912.ted:tedpermission:1.0.3'
      compile 'com.android.support.constraint:constraint-layout:1.0.2'
      compile 'com.intuit.sdp:sdp-android:1.0.3'
      compile 'com.github.adhishlal:gifloader:1.1'
      compile('com.dlazaro66.qrcodereaderview:qrcodereaderview:2.0.2') {
      exclude group: 'com.google.zxing'
      }
      compile 'com.github.javiersantos:BottomDialogs:1.2.1'
      testCompile 'junit:junit:4.12'
      annotationProcessor 'com.jakewharton:butterknife-compiler:8.6.0'

      // new added jar files

      compile files('libs/simple-xml-2.7.1.jar')
      compile files('libs/mpaysdk_release_v.1.0.4.jar')
      compile files('libs/jackson-core-asl-1.9.13.jar')
      compile files('libs/jackson-mapper-asl-1.9.13.jar')
      compile files('libs/bcprov-ext-jdk15on-154.jar')
      compile files('libs/commons-io-2.4.jar')
      compile files('libs/commons-lang-2.3.jar')
      compile files('libs/core-2.3.0.jar')
      compile files('libs/meSdk-3.6.4-SNAPSHOT7.jar')
      compile files('libs/rsadukpt.jar')


      }
      apply plugin: 'com.google.gms.google-services'
      apply plugin: 'com.jakewharton.butterknife'


      now after build i got error like this:



      Error:Execution failed for task ':app:transformClassesWithJarMergingForDebug'.




      com.android.build.api.transform.TransformException: java.util.zip.ZipException: duplicate entry: b.class




      how i can sove this issue .anyone please help me for overcome this problem.thank in advanced.










      share|improve this question














      used gradle for my android project. i recently add some jars files (al last).but after adding thisi got build error .my gradle file is



      apply plugin: 'com.android.application'

      android {
      compileSdkVersion 26
      buildToolsVersion "26.0.0"
      defaultConfig {
      applicationId "com.myapplicationpck"
      minSdkVersion 19
      targetSdkVersion 26
      versionCode 44
      versionName "4.9"
      testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
      multiDexEnabled = true
      }
      buildTypes {
      release {
      minifyEnabled false
      proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
      }
      }
      dexOptions {
      javaMaxHeapSize "4g"
      }

      sourceSets {
      main.jni.srcDirs =
      main.jniLibs.srcDirs = ['libs']
      }

      packagingOptions {
      exclude 'META-INF/LICENSE'
      exclude 'META-INF/ASL2.0'
      exclude 'VERSION.txt'

      }

      }

      android {
      useLibrary 'org.apache.http.legacy'
      }


      repositories {
      mavenCentral()
      maven {
      url "https://jitpack.io"
      }
      maven {
      url 'https://maven.google.com'
      }

      }

      dependencies {
      compile fileTree(include: ['*.jar'], dir: 'libs')
      androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
      exclude group: 'com.android.support', module: 'support-annotations'
      })

      compile files('libs/android-viewbadger.jar')
      compile project(':libraryMobilePaymentSDK')
      compile('com.jakewharton:butterknife:8.6.0') {
      exclude module: 'support-compat'
      }
      compile 'xml-security:xmlsec:1.3.0'
      compile 'com.android.support:appcompat-v7:24.2.1'
      compile 'com.google.firebase:firebase-messaging:10.0.1'
      compile 'com.google.firebase:firebase-core:10.0.1'
      compile 'com.facebook.android:facebook-android-sdk:4.0.0'
      compile 'com.github.aakira:expandable-layout:1.4.2@aar'
      compile 'com.android.support:cardview-v7:24.2.1'
      compile 'com.mcxiaoke.volley:library-aar:1.0.0'
      compile 'com.google.android.gms:play-services:10.0.1'
      compile 'com.squareup.picasso:picasso:2.5.2'
      compile 'com.android.support:recyclerview-v7:24.2.1'
      compile 'com.android.support:support-v4:24.2.1'
      compile 'com.android.support:design:24.2.1'
      compile 'org.apache.httpcomponents:httpcore:4.4.1'
      compile 'org.apache.httpcomponents:httpclient:4.5'
      compile 'com.android.support:multidex:1.0.1'
      compile 'rongi.rotate-layout:rotate-layout:2.0.0'
      compile 'com.roomorama:caldroid:3.0.1'
      compile 'com.google.guava:guava:18.0'
      compile 'org.jsoup:jsoup:1.9.1'
      compile 'com.android.support.test.espresso:espresso-core:2.2.2'
      compile 'gun0912.ted:tedpermission:1.0.3'
      compile 'com.android.support.constraint:constraint-layout:1.0.2'
      compile 'com.intuit.sdp:sdp-android:1.0.3'
      compile 'com.github.adhishlal:gifloader:1.1'
      compile('com.dlazaro66.qrcodereaderview:qrcodereaderview:2.0.2') {
      exclude group: 'com.google.zxing'
      }
      compile 'com.github.javiersantos:BottomDialogs:1.2.1'
      testCompile 'junit:junit:4.12'
      annotationProcessor 'com.jakewharton:butterknife-compiler:8.6.0'

      // new added jar files

      compile files('libs/simple-xml-2.7.1.jar')
      compile files('libs/mpaysdk_release_v.1.0.4.jar')
      compile files('libs/jackson-core-asl-1.9.13.jar')
      compile files('libs/jackson-mapper-asl-1.9.13.jar')
      compile files('libs/bcprov-ext-jdk15on-154.jar')
      compile files('libs/commons-io-2.4.jar')
      compile files('libs/commons-lang-2.3.jar')
      compile files('libs/core-2.3.0.jar')
      compile files('libs/meSdk-3.6.4-SNAPSHOT7.jar')
      compile files('libs/rsadukpt.jar')


      }
      apply plugin: 'com.google.gms.google-services'
      apply plugin: 'com.jakewharton.butterknife'


      now after build i got error like this:



      Error:Execution failed for task ':app:transformClassesWithJarMergingForDebug'.




      com.android.build.api.transform.TransformException: java.util.zip.ZipException: duplicate entry: b.class




      how i can sove this issue .anyone please help me for overcome this problem.thank in advanced.







      android android-studio jar android-gradle build.gradle






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Jan 1 at 7:41









      SureshSuresh

      316




      316
























          1 Answer
          1






          active

          oldest

          votes


















          0














          compile project(':libraryMobilePaymentSDK')
          compile files('libs/mpaysdk_release_v.1.0.4.jar')


          I think these two libraries are same. If YES then try to remove one of them and rebuild your project.






          share|improve this answer
























          • yes ,you caught it right but i need to add both library and jar files .its conflict with :libraryMobilePaymentSDK and i want to exclude this jar from this module .how can i?

            – Suresh
            Jan 2 at 5:30











          • You can exlude your library like this ~configurations { all*.exclude group: 'mpaysdk_release_v.1.0.4' }

            – Asad.Akhtar23
            Jan 2 at 8:57













          • but why you need two same libraries in a project?

            – Asad.Akhtar23
            Jan 2 at 8:59













          • Thank you for your efforts for giving your valuable time to this question. I need both lib because they both have different functionality. But not set both at same time .Is it possible to have both lib ? or some alternative methods so plz share i will try ..

            – Suresh
            Jan 2 at 14:21











          Your Answer






          StackExchange.ifUsing("editor", function () {
          StackExchange.using("externalEditor", function () {
          StackExchange.using("snippets", function () {
          StackExchange.snippets.init();
          });
          });
          }, "code-snippets");

          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "1"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });














          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53993832%2fcom-android-build-api-transform-transformexception-java-util-zip-zipexception%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          0














          compile project(':libraryMobilePaymentSDK')
          compile files('libs/mpaysdk_release_v.1.0.4.jar')


          I think these two libraries are same. If YES then try to remove one of them and rebuild your project.






          share|improve this answer
























          • yes ,you caught it right but i need to add both library and jar files .its conflict with :libraryMobilePaymentSDK and i want to exclude this jar from this module .how can i?

            – Suresh
            Jan 2 at 5:30











          • You can exlude your library like this ~configurations { all*.exclude group: 'mpaysdk_release_v.1.0.4' }

            – Asad.Akhtar23
            Jan 2 at 8:57













          • but why you need two same libraries in a project?

            – Asad.Akhtar23
            Jan 2 at 8:59













          • Thank you for your efforts for giving your valuable time to this question. I need both lib because they both have different functionality. But not set both at same time .Is it possible to have both lib ? or some alternative methods so plz share i will try ..

            – Suresh
            Jan 2 at 14:21
















          0














          compile project(':libraryMobilePaymentSDK')
          compile files('libs/mpaysdk_release_v.1.0.4.jar')


          I think these two libraries are same. If YES then try to remove one of them and rebuild your project.






          share|improve this answer
























          • yes ,you caught it right but i need to add both library and jar files .its conflict with :libraryMobilePaymentSDK and i want to exclude this jar from this module .how can i?

            – Suresh
            Jan 2 at 5:30











          • You can exlude your library like this ~configurations { all*.exclude group: 'mpaysdk_release_v.1.0.4' }

            – Asad.Akhtar23
            Jan 2 at 8:57













          • but why you need two same libraries in a project?

            – Asad.Akhtar23
            Jan 2 at 8:59













          • Thank you for your efforts for giving your valuable time to this question. I need both lib because they both have different functionality. But not set both at same time .Is it possible to have both lib ? or some alternative methods so plz share i will try ..

            – Suresh
            Jan 2 at 14:21














          0












          0








          0







          compile project(':libraryMobilePaymentSDK')
          compile files('libs/mpaysdk_release_v.1.0.4.jar')


          I think these two libraries are same. If YES then try to remove one of them and rebuild your project.






          share|improve this answer













          compile project(':libraryMobilePaymentSDK')
          compile files('libs/mpaysdk_release_v.1.0.4.jar')


          I think these two libraries are same. If YES then try to remove one of them and rebuild your project.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Jan 1 at 16:37









          Asad.Akhtar23Asad.Akhtar23

          11




          11













          • yes ,you caught it right but i need to add both library and jar files .its conflict with :libraryMobilePaymentSDK and i want to exclude this jar from this module .how can i?

            – Suresh
            Jan 2 at 5:30











          • You can exlude your library like this ~configurations { all*.exclude group: 'mpaysdk_release_v.1.0.4' }

            – Asad.Akhtar23
            Jan 2 at 8:57













          • but why you need two same libraries in a project?

            – Asad.Akhtar23
            Jan 2 at 8:59













          • Thank you for your efforts for giving your valuable time to this question. I need both lib because they both have different functionality. But not set both at same time .Is it possible to have both lib ? or some alternative methods so plz share i will try ..

            – Suresh
            Jan 2 at 14:21



















          • yes ,you caught it right but i need to add both library and jar files .its conflict with :libraryMobilePaymentSDK and i want to exclude this jar from this module .how can i?

            – Suresh
            Jan 2 at 5:30











          • You can exlude your library like this ~configurations { all*.exclude group: 'mpaysdk_release_v.1.0.4' }

            – Asad.Akhtar23
            Jan 2 at 8:57













          • but why you need two same libraries in a project?

            – Asad.Akhtar23
            Jan 2 at 8:59













          • Thank you for your efforts for giving your valuable time to this question. I need both lib because they both have different functionality. But not set both at same time .Is it possible to have both lib ? or some alternative methods so plz share i will try ..

            – Suresh
            Jan 2 at 14:21

















          yes ,you caught it right but i need to add both library and jar files .its conflict with :libraryMobilePaymentSDK and i want to exclude this jar from this module .how can i?

          – Suresh
          Jan 2 at 5:30





          yes ,you caught it right but i need to add both library and jar files .its conflict with :libraryMobilePaymentSDK and i want to exclude this jar from this module .how can i?

          – Suresh
          Jan 2 at 5:30













          You can exlude your library like this ~configurations { all*.exclude group: 'mpaysdk_release_v.1.0.4' }

          – Asad.Akhtar23
          Jan 2 at 8:57







          You can exlude your library like this ~configurations { all*.exclude group: 'mpaysdk_release_v.1.0.4' }

          – Asad.Akhtar23
          Jan 2 at 8:57















          but why you need two same libraries in a project?

          – Asad.Akhtar23
          Jan 2 at 8:59







          but why you need two same libraries in a project?

          – Asad.Akhtar23
          Jan 2 at 8:59















          Thank you for your efforts for giving your valuable time to this question. I need both lib because they both have different functionality. But not set both at same time .Is it possible to have both lib ? or some alternative methods so plz share i will try ..

          – Suresh
          Jan 2 at 14:21





          Thank you for your efforts for giving your valuable time to this question. I need both lib because they both have different functionality. But not set both at same time .Is it possible to have both lib ? or some alternative methods so plz share i will try ..

          – Suresh
          Jan 2 at 14:21




















          draft saved

          draft discarded




















































          Thanks for contributing an answer to Stack Overflow!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53993832%2fcom-android-build-api-transform-transformexception-java-util-zip-zipexception%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          MongoDB - Not Authorized To Execute Command

          How to fix TextFormField cause rebuild widget in Flutter

          in spring boot 2.1 many test slices are not allowed anymore due to multiple @BootstrapWith