[英]How to exclude 'jar' file from External Library
I am getting httpclient-android-4.3.5.1.jar
file with one of the aar
file that I am adding in my dependencies. 我正在使用在我的依赖项中添加的
aar
文件之一来获取httpclient-android-4.3.5.1.jar
文件。
I want to exclude this jar
from this dependency, because this is giving me duplicate
library error message. 我想从此依赖项中排除此
jar
,因为这给了我duplicate
库错误消息。
I have tried many things, from 我尝试了很多东西,从
exclude group: 'org.apache.httpcomponents', module: 'httpclient-android'
to 至
{exclude module: "httpclient-android-4.3.5.1"}
but nothing is helping, the '.jar file is still there and part of
SDK` 但没有任何帮助,.jar
file is still there and part of
SDK的file is still there and part of
您也尝试过吗?:
configurations { all { exclude module: 'httpclient' exclude module: 'httpcore' } }
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.