我从昨天起就收到了这个错误,我不知道如何解决,我已经检查并尝试了我能找到的每个相似的主题,但没有解决问题,希望你能给出解决它的想法。整个错误说:
错误:
Error:Execution failed for task ':app:packageAllDebugClassesForMultiDex'.
> java.util.zip.ZipException: duplicate entry: com/jcraft/jsch/agentproxy/AgentProxy.class
摇篮:
apply plugin: 'com.android.application'
android {
compileSdkVersion 21
buildToolsVersion '21.1.2'
defaultConfig {
applicationId "com.example.luiggi.myapplication"
minSdkVersion 14
targetSdkVersion 21
versionCode 1
versionName "1.0"
multiDexEnabled true
}
dexOptions {
javaMaxHeapSize "4g"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
compile files('libs/mpandroidchartlibrary-1-7-4.jar')
compile files('libs/jxl.jar')
compile files('libs/poi-3.7.jar')
compile files('libs/androidplot-core-0.6.1.jar')
compile 'com.android.support:support-v13:21.0.0'
compile 'com.android.support:appcompat-v7:21.0.0'
compile 'com.android.support:recyclerview-v7:21.0.0'
compile 'com.android.support:cardview-v7:21.0.0'
//compile 'com.google.android.gms:play-services:7.0.0'
compile 'com.google.android.gms:play-services:8.3.0'
compile 'com.google.android.gms:play-services-maps:8.3.0'
}