2017-07-17 9 views
0

Hallo Ich erhalte diesen Fehler in gradle:Java-Klasse doppelten Eintrag

Fehler: Ausführung für die Task fehlgeschlagen ': App: transformClassesWithJarMergingForRelease'. meine Abhängigkeiten

com.android.build.api.transform.TransformException: java.util.zip.ZipException: duplicate entry: com/like/CircleView$1.class

Diese sind:

compile project(':library') 
    compile project(':likebutton') 
    compile 'com.android.support:appcompat-v7:25.3.1' 
    compile 'com.android.support.constraint:constraint-layout:1.0.1' 
    compile 'com.nineoldandroids:library:2.4.0' 
    compile 'com.android.support:cardview-v7:25.3.1' 
    compile 'com.google.firebase:firebase-messaging:10.2.4' 
    compile 'com.android.support:design:25.3.1' 
    compile 'com.mcxiaoke.volley:library:1.0.19' 
    compile 'com.android.support:recyclerview-v7:25.3.1' 
    compile 'com.squareup.picasso:picasso:2.5.2' 
    compile 'com.android.support:support-v4:25.3.1' 
    compile 'com.android.support:support-vector-drawable:25.3.1' 
    compile 'com.github.bumptech.glide:glide:3.7.0' 
    compile 'com.github.pavlospt:circleview:1.3' 
    compile 'com.github.jd-alexander:LikeButton:0.2.1' 
    compile 'com.thefinestartist:ytpa:1.2.1' 
    compile 'com.google.firebase:firebase-core:10.2.4' 
    compile 'com.daimajia.androidanimations:library:[email protected]' 
    compile 'com.facebook.android:facebook-android-sdk:[4,5)' 
    compile 'com.google.firebase:firebase-ads:10.2.4' 
    compile 'com.daimajia.numberprogressbar:library:[email protected]' 
    compile 'com.google.android.gms:play-services-auth:10.2.4' 
    compile 'com.google.android.gms:play-services-ads:10.2.4' 

Der Fehler tritt auf, wenn ich diese lib hinzugefügt:

compile 'com.github.jd-alexander:LikeButton:0.2.1' 

es s macht Konflikt mit dieser:

compile 'com.github.pavlospt:circleview:1.3' 

Wie kann ich den com/like/ausschließen CircleView 1. Klasse von einer der beiden Bibliotheken?

und von wem man es ausschließt?

Antwort

1

Das Problem ist, dass Sie die LikeButton Bibliothek 2 mal importieren.

One mit

compile project(':likebutton') 

und ein mit

compile 'com.github.jd-alexander:LikeButton:0.2.1' 

Sie müssen eine dieser Aussagen zu entfernen, können Sie Ihre App viel

+1

Dank ich es 5 Minuten gefunden bauen vor . Aber ich schätze Ihre Hilfe Exakte Lösung. –

Verwandte Themen