【发布时间】:2014-07-09 16:16:39
【问题描述】:
我正在使用 https://github.com/pfn/android-sdk-plugin 使用 Scala 构建我的 Android 应用程序。当我运行sbt android:package 时,我得到了这个错误:
com.android.builder.packaging.DuplicateFileException: Duplicate files copied in APK META-INF/LICENSE
File 1: ...ivy2\cache\org.apache.httpcomponents\httpcore\jars\httpcore-4.0.1.jar
File 2: ...ivy2\cache\org.apache.httpcomponents\httpcore\jars\httpcore-4.0.1.jar
我搜索了一段时间,有人说我可以设置packageOptions 来排除许可证。但我是 Scala 新手,不知道该怎么做。
【问题讨论】:
-
你能提供你的
build.sbt吗?