我想添加 Robospice 库时出错;这是我的 build.gradle 文件:
apply plugin: 'android'
android {
// Check on it to know witch Android API level is necessary:
// http://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels
compileSdkVersion 19
buildToolsVersion '19.0.1'
defaultConfig {
minSdkVersion 14
targetSdkVersion 19
versionCode 1
versionName "1.0"
}
buildTypes {
release {
runProguard false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
}
}
}
dependencies {
compile "com.android.support:support-v4:18.0.+"
compile "com.android.support:appcompat-v7:18.0.+"
compile "com.octo.android.robospice:robospice:1.4.11"
}
但不幸的是,Gradle 给了我这个错误:
APK D:\blablabla\build\apk\mtc-debug-unaligned.apk 打包过程中出现重复文件 任务“:mtc:packageDebug”执行失败。在 APK META-INF/LICENSE.txt 文件 1 中复制的重复文件:C:\Users\Anthony.gradle\caches\modules-2\files-2.1\org.apache.commons\commons-lang3\3.2.1\66f13681add50ca9e4546ffabafaaac7645db3cf\ commons-lang3-3.2.1.jar 文件 2:C:\Users\Anthony.gradle\caches\modules-2\files-2.1\org.apache.commons\commons-lang3\3.2.1\66f13681add50ca9e4546ffabafaaac7645db3cf\commons-lang3 -3.2.1.jar
谢谢你的帮助 !
安东尼