Duplicate files copied (Android Studio 0.4.0)(复制的重复文件 (Android Studio 0.4.0))
问题描述
在我的项目中,我使用来自 Apache 的 httpcore 和 httpmime 库.将 Android Studio 更新到 0.4.0 后,我在构建项目时遇到了这个问题:
In my project I use httpcore and httpmime libraries from Apache. After update Android Studio to 0.4.0 I have this issue building my project:
这是 Gradle 构建的堆栈跟踪:
Here is stacktrace of Gradle build:
build.gradle 看起来像这样:
The build.gradle looks like this:
编辑 1:设法解决了这个问题,从 META-INF 目录中 httpmime 库的本地副本中删除了我遇到问题的文件
Edit 1: Managed to solve this problem deleting files I had problem with from the local copy of httpmime library in META-INF directory
推荐答案
根据这个bug中的评论14:https://code.google.com/p/android/issues/detail?id=61573#c14 这是 Android Gradle 插件 v0.7.0 中的一个错误,并将很快在 0.7.1 中修复.
According to comment 14 in this bug: https://code.google.com/p/android/issues/detail?id=61573#c14 this is a bug in v0.7.0 of the Android Gradle plugin, and is due to be fixed soon in 0.7.1.
编辑
以下是该错误中关于 0.7.1 添加的注释:
Here are the notes from that bug about the addition for 0.7.1:
0.7.1 已经解决了这个问题.
0.7.1 is out with the fix for this.
排除文件的DSL是:
您可以根据需要添加任意数量的排除语句.该值是存档路径.尚无通配符或 glob 支持.
You can add as many exclude statement as you want. The value is the archive path. No wildcard or glob support yet.
这篇关于复制的重复文件 (Android Studio 0.4.0)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!