错误:
compile('com.thoughtworks.xstream:xstream:1.4.7') {
exclude group: 'xmlpull'
exclude group: 'XmlPullParser'
}
Error:Execution failed for task ':app:transformClassesWithDexForDebug'.
> com.android.build.api.transform.TransformException: com.android.ide.common.process.ProcessException:
> com.android.build.api.transform.TransformException: com.android.ide.common.process.ProcessException:
java.util.concurrent.ExecutionException: com.android.dex.DexException: Multiple dex files define Lorg/xmlpull/v1/XmlPullParser;
分析:
加包后出错,studio2.3.1没问题,studio2.3.2的有问题,百度后发现很多说是包冲突
解决:
经查询,发现有一个包里包含了xmlpull
的jar包,新增的又有xmlpull的jar包,重复了,删除其中之一即可