gpt4 book ai didi

android - 错误 :Execution failed for task ':app:transformClassesWithJarMergingForRelease'

转载 作者:行者123 更新时间:2023-11-30 00:48:20 33 4
gpt4 key购买 nike

我不知道为什么会出现这个错误,而且我无法解决它。请为此给出确切的解决方案。我受够了这个错误。我知道这可能会重复问题,但这些解决方案对我不起作用。我可以调试 apk,但无法生成签名的 apk。在生成签名的 apk 时,它给了我以下异常:错误:任务“:app:transformClassesWithJarMergingForRelease”执行失败。

com.android.build.api.transform.TransformException: java.util.zip.ZipException: duplicate entry: io/codetail/widget/RevealLinearLayout.class

这是我的 App Gradle:

dependencies {

compile fileTree(dir: 'libs', include: ['*.jar'])
testCompile 'junit:junit:4.12'
compile 'org.achartengine:achartengine:1.2.0'
compile('com.crashlytics.sdk.android:crashlytics:2.6.2@aar') {
transitive = true;
}
compile 'org.jsoup:jsoup:1.8.3'
compile 'com.mcxiaoke.volley:library:1.0.19'
compile 'com.android.support:appcompat-v7:23.4.0'
compile 'com.android.support:design:23.4.0'
compile 'com.pkmmte.view:circularimageview:1.1'
compile 'com.android.support:cardview-v7:23.4.0'
compile 'org.achartengine:achartengine:1.2.0'
compile 'com.github.npanigrahy:Custom-Calendar-View:v1.0'
compile 'com.github.siyamed:android-shape-imageview:0.9.+@aar'
compile 'com.github.PhilJay:MPAndroidChart:v2.1.6'
compile 'com.google.android.gms:play-services:8.3.0'
compile 'com.android.support:multidex:1.0.1'
compile 'pub.devrel:easypermissions:0.1.9'
compile 'com.github.ksoichiro:android-observablescrollview:1.6.0'
compile 'pl.droidsonroids.gif:android-gif-drawable:1.1.16'
compile 'com.miguelcatalan:materialsearchview:1.4.0'
compile 'com.github.rey5137:material:1.2.2'
compile 'uk.co.chrisjenx:calligraphy:2.1.0'
compile 'com.github.blackfizz:eazegraph:1.2.5l@aar'
compile 'com.github.PhilJay:MPAndroidChart:v2.1.6'
compile 'com.squareup.picasso:picasso:2.5.2'
compile 'com.nineoldandroids:library:2.4.0'
compile 'com.miguelcatalan:materialsearchview:1.4.0'
compile 'de.hdodenhof:circleimageview:2.1.0'
compile 'com.squareup.picasso:picasso:2.4.0'
compile('com.crashlytics.sdk.android:crashlytics:2.6.2@aar') {
transitive = true;
}
compile 'com.github.bumptech.glide:glide:3.7.0'
compile 'com.android.support:palette-v7:23.4.0'
compile 'com.nostra13.universalimageloader:universal-image-loader:1.9.5'
compile('com.weiwangcn.betterspinner:library:1.1.0') {
exclude group: 'com.android.support', module: 'appcompat-v7'
}
compile 'swarajsaaj:otpreader:1.0'
compile('com.github.ozodrukh:CircularReveal:1.3.1@aar') {
transitive = true;
}
compile 'com.flipboard:bottomsheet-core:1.4.3'
compile 'com.flipboard:bottomsheet-commons:1.4.3'
compile 'com.riontech.staggeredtextgridview:staggeredtextgridview:1.0.1'
compile 'konifar:fab-transformation:1.0.0'
compile project(':flickabledialog')
compile 'com.android.support:support-v4:23.4.0'
}

最佳答案

你得到了

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

你有多个

compile 'com.github.PhilJay:MPAndroidChart:v2.1.6'//remove this
compile 'com.github.PhilJay:MPAndroidChart:v2.1.6'

compile 'com.squareup.picasso:picasso:2.5.2'
compile 'com.squareup.picasso:picasso:2.4.0' //remove this

compile 'com.github.PhilJay:MPAndroidChart:v2.1.6' // Two times

注意

像上面一样,您的 gradle 部分中存在许多相同的依赖项。删除它们。

关于android - 错误 :Execution failed for task ':app:transformClassesWithJarMergingForRelease' ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41458087/

33 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com