从gradle传递依赖项中排除文件

时间:2015-02-24 17:21:46

标签: java android android-studio gradle jackson

我试图排除文件

的问题一直存在

在这种情况下,le lib是 commons-codec-1.8 ,文件是LICENSE,已经添加到 jackson-core-2.3.2

我找到了这个方法:

compile('com.cognitect:transit-java:0.8.269'){
    exclude files: ''
}

但我不知道如何使用它?

EDIT1:

我在尝试执行我的应用时遇到了这种错误

Duplicate files during packaging of APK .../basic/build/apk/basic-debug-unaligned.apk
Duplicate files copied in APK META-INF/LICENSE.txt File 1: /home/scijoker/AndroidStudioProjects/ProgProject/Prog/libs/httpclient-4.1.1.jar File 2: /home/scijoker/AndroidStudioProjects/ProgProject/Prog/libs/httpclient-4.1.1.jar

还有这种:

Path in archive: about.html
Origin 1: ...filestore/org.eclipse.jetty/jetty-servlet/8.1.8.v20121106/jar/285ea47746e9ab988a8291ea9fd6545b537e0ce9/jetty-servlet-8.1.8.v20121106.jar
Origin 2: ...filestore/org.eclipse.jetty/jetty-client/8.1.8.v20121106/jar/f194a5a07ada9dab48e226c4e8152d120ce1e76f/jetty-client-8.1.8.v20121106.jar

问题跟踪器: https://code.google.com/p/android/issues/detail?id=61573

0 个答案:

没有答案