简体   繁体   English

如何从外部库中排除“ jar”文件

[英]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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM