I encountered the same error when added http-builder to dependencies.
In my case, I could solve by simply excluding asm like this:
compile('org.codehaus.groovy.modules.http-builder:http-builder:0.7'){
excludes 'xml-apis'
exclude(group:'xerces', module: 'xercesImpl')
excludes 'asm'
}