I'm making a Reddit app using the jReddit wrapper and I'm having trouble with the apache http client throwing the above exception. My dependencies look like this:

and my libraries look like this:

I have seen other questions on SO regarding similar exceptions, with people saying they may have two of the same jars in their classpath, but I am yet to find an answer which provides me with a solution of how to check for or eliminate duplicate/deprecated jars. Does anyone know how to solve this? Any help greatly appreciated, thanks.
compile('com.github.jreddit:jreddit:1.0.2') { exclude group: 'org.apache.httpcomponents', module: 'httpclient' }like you did forjunitdependency?