错误:任务执行失败':jobFlexwithInvoice:packageAllDebugClassesForMultiDex'。
java.util.zip.ZipException:duplicateentry:机器人/支持/ V4 /视图/ MotionEventCompatEclair.class
我有这个问题,我的gradle文件是,
apply plugin: 'com.android.application'
android {
compileSdkVersion 22
buildToolsVersion '22.0.1'
defaultConfig {
applicationId "com.studity.socet_store"
minSdkVersion 15
targetSdkVersion 22
versionCode 1
versionName "1.0"
multiDexEnabled true
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
//compile files('libs/android-support-v4.jar')
compile 'com.android.support:design:22.2.0'
compile files('libs/Parse-1.3.0.jar')
compile files('libs/signpost-commonshttp4-1.2.1.2.jar')
compile files('libs/signpost-core-1.2.1.2.jar')
compile files('libs/signpost-jetty6-1.2.1.2.jar')
compile 'com.android.support:multidex:1.0.0'
compile 'com.android.support:support-v4:22.2.0'
}
我该怎么做!?
答案 0 :(得分:0)
试试这个..
compile ('com.android.support:support-v4:22.2.0') {
exclude module: 'support-v4'
}
而不是
compile 'com.android.support:support-v4:22.2.0'
或排除模块:到其他问题创建的地方