Android测试框架Robolectric导入时发生了一些问题,
testCompile不能用,compile又会报错,后续还得继续研究
testCompile('org.robolectric:robolectric:3.0-rc2') {
exclude group: 'commons-logging', module: 'commons-logging'
exclude group: 'org.apache.httpcomponents', module: 'httpclient'
}
以上代码可以解决导入冲突的问题,但是测试还是没有成功,继续工作,回家以后再测试这个框架