I\'m trying to add to classpath external library (this one). The way I do it: File -> Project Structure -> Dependencies tab -> Add file dependency
. Is
I fixed it by using exclude
option in app/build.gradle
, it works fine now.
dependencies {
.....
compile ('com.thoughtworks.xstream:xstream:1.4.7'){
exclude group: 'xmlpull'
}
}
How to add external libraries into Android Studio:
Then check dependencies of build.gradle, you will find jar file is added successfully.
xml pull parser is a part of android framework, remove xmlpull-1.1.3.1.jar and try It might work.