gpt4 book ai didi

android - Gradle 错误 : duplicate entry: com/android/volley/AuthFailureError. 类

转载 作者:搜寻专家 更新时间:2023-11-01 07:49:27 26 4
gpt4 key购买 nike

<分区>

我在我的项目中导入了 EBS Sdk。现在 gradle 构建成功但在运行时

  Error:Execution failed for task':app:transformClassesWithJarMergingForDebug'.
> com.android.build.api.transform.TransformException: java.util.zip.ZipException: duplicate entry: com/android/volley/AuthFailureError.class**

发生此异常。

下面是app和module的build.gradle我已经搜索并尝试了所有的可能性,但我没有得到结果

app/Build.gradle

 apply plugin: 'com.android.application'

android {
compileSdkVersion 23
buildToolsVersion '23.0.2'
configurations {
all*.exclude group: 'com.android.volley', module: 'library-aar-1.0.0'
}
defaultConfig {
applicationId 'com.app.sanyog'
minSdkVersion 15
targetSdkVersion 23
versionCode 3
versionName "1.2"
multiDexEnabled = true
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
productFlavors {
}
}
android {
packagingOptions {
pickFirst 'META-INF/LICENSE.txt' // picks the JavaMail license file
}
}
repositories {
mavenCentral()
}
dependencies {

compile project(':EBS')

compile 'de.hdodenhof:circleimageview:1.3.0'
compile 'com.android.support:gridlayout-v7:23.1.1'
compile 'com.android.support:appcompat-v7:23.0.1'
compile 'com.mcxiaoke.volley:library-aar:1.0.0'


compile 'com.android.support:design:23.0.1'
compile 'com.android.support:cardview-v7:23.1.1'
compile 'com.android.support:recyclerview-v7:23.1.1'
compile "com.android.support:gridlayout-v7:23.1.1"
compile 'com.rengwuxian.materialedittext:library:2.1.4'
compile 'com.squareup.retrofit:retrofit:1.9.0'
compile 'com.squareup.okhttp:okhttp:2.7.5'
compile 'com.android.support:multidex:1.0.1'
compile 'fr.avianey.com.viewpagerindicator:library:2.4.1@aar'
compile 'com.loopj.android:android-async-http:1.4.6'
compile 'com.squareup.picasso:picasso:2.5.2'
compile 'org.jbundle.util.osgi.wrapped:org.jbundle.util.osgi.wrapped.org.apache.http.client:4.1.2'
compile 'com.android.support:support-v4:23.1.1'
compile 'com.wdullaer:materialdatetimepicker:2.0.0'
compile 'com.github.bumptech.glide:glide:3.6.0'
compile 'com.davemorrissey.labs:subsampling-scale-image-view:3.1.3'
compile 'com.jakewharton:butterknife:6.1.0'
compile 'com.bignerdranch.android:expandablerecyclerview:2.1.1'
compile 'com.google.android.gms:play-services-maps:8.4.0'
compile 'com.wdullaer:materialdatetimepicker:2.3.0'
compile 'com.facebook.android:facebook-android-sdk:4.0.0'
compile 'javax.mail:mail:1.4.1'
compile files('libs/activation.jar')
compile files('libs/additionnal.jar')
compile files('libs/mail.jar')




}

ebs/build.gradle

  apply plugin: 'android-library'

dependencies {
compile files('libs/ebs.jar')
compile files('libs/volley.jar')

}

android {
compileSdkVersion 19
buildToolsVersion "23.0.2"

sourceSets {
main {
manifest.srcFile 'AndroidManifest.xml'
java.srcDirs = ['src']
resources.srcDirs = ['src']
aidl.srcDirs = ['src']
renderscript.srcDirs = ['src']
res.srcDirs = ['res']
assets.srcDirs = ['assets']
}

// Move the tests to tests/java, tests/res, etc...
instrumentTest.setRoot('tests')

// Move the build types to build-types/<type>
// For instance, build-types/debug/java, build-types/debug/AndroidManifest.xml, ...
// This moves them out of them default location under src/<type>/... which would
// conflict with src/ being used by the main source set.
// Adding new build types or product flavors should be accompanied
// by a similar customization.
debug.setRoot('build-types/debug')
release.setRoot('build-types/release')
}
}

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com