解决不能加入org.apache.http库的问题

1、修改版本,修改android{}

compileSdkVersion 22

2、在android{}中添加

useLibrary 'org.apache.http.legacy'

3、在dependencies{}中添加

compile 'org.apache.httpcomponents:httpcore:4.4.2'

猜你喜欢

转载自blog.csdn.net/danwuxie/article/details/84500818