Api23及以上不支持Httpclient解决办法

 
  

如果你还在用Httpclient的话;

方案①api改低

方案②先添加依赖

compile 'com.hynnet:httpclient:4.5.1'
运行会报错

httpclient和httpcore依赖库文件有冲突

gradle的android节点下配置

packagingOptions { exclude 'META-INF/DEPENDENCIES' exclude 'META-INF/NOTICE' exclude 'META-INF/LICENSE' exclude 'META-INF/LICENSE.txt' exclude 'META-INF/NOTICE.txt' }



你可能感兴趣的:(Api23及以上不支持Httpclient解决办法)