Android Gradle Plugin 3.0.0: Multiple dex files define Lorg/xmlpull/mxp1/MXParser with XStream
问题 Included projects that bring their own xmlpullparser always needed some extra care in Android Studio since Android brings its own xmlpullparser. E.g. the popular XML mapper XStream required this exclude (1) (2) : compile('com.thoughtworks.xstream:xstream:1.4.7') { exclude group: 'xmlpull', module: 'xmlpull' //exclude xmlpull to avoid `Multiple dex files define`-error } Somewhere else I also have seen: compile('com.thoughtworks.xstream:xstream:1.4.7') { exclude group: 'xmlpull' exclude group: