https://kotlinlang.org logo
#android
Title
# android
j

jordan29.04.1197

06/16/2017, 2:09 PM
* What went wrong: Execution failed for task ‘apptransformClassesWithJarMergingFor<FlavorName>Debug’.
com.android.build.api.transform.TransformException: java.util.zip.ZipException: duplicate entry: org/xmlpull/v1/XmlPullParser.class
HELP
p

perryprog

06/16/2017, 2:27 PM
@jordan29.04.1197 Can you give us some more info? What command did you run? What is the source code for the task you were running?
j

jordan29.04.1197

06/16/2017, 2:31 PM
./gradlew —no-daemon “appassemble<FlavorNaem>DebugAndroidTest” “appassemble<FlavorName>Debug”
p

perryprog

06/16/2017, 2:34 PM
Hmm, I’m not really a Gradle expert, so I’m not going to answer this, but the error message says there’s a duplicated file when it was zipping up the classes, so many is was related to that?
Again, I’m really not sure.
t

trevjones

06/16/2017, 3:54 PM
do a
./gradlew app:dependencies --configuration compile
then figure out what two libraries are pulling in
XmlPullParser
then use an exclusion strategy to fix it.
👍 1
j

jordan29.04.1197

06/16/2017, 4:32 PM
thx, I fixed my problem.
3 Views