【发布时间】:2016-02-01 11:18:26
【问题描述】:
我在 android studio 中构建项目时遇到以下错误
com.android.build.api.transform.TransformException:java.util.zip.ZipException:重复条目:android/support/annotation/ArrayRes.class
我的 build.gradle 文件
android {
compileSdkVersion 23
buildToolsVersion "23.0.2"
defaultConfig {
applicationId "com.example.android.instagram_project"
minSdkVersion 16
targetSdkVersion 23
versionCode 1
versionName "1.0"
}
defaultConfig {
multiDexEnabled true
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
testCompile 'junit:junit:4.12'
compile 'com.android.support:appcompat-v7:23.1.1'
compile 'com.squareup.picasso:picasso:2.5.2'
}
这是我在项目中的lib文件夹的截图 http://i.stack.imgur.com/qDjL4.jpg
【问题讨论】:
-
在此处发布您的 logcat 错误堆栈 ..
标签: java android exception android-studio