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
File -> Project Structure -> Dependencies tab -> Add file dependency
I fixed it by using exclude option in app/build.gradle, it works fine now.
exclude
app/build.gradle
dependencies { ..... compile ('com.thoughtworks.xstream:xstream:1.4.7'){ exclude group: 'xmlpull' } }