重复条目:com/android/volley/AuthFailureError.class,同时在android studio中编译项目 [英] duplicate entry: com/android/volley/AuthFailureError.class while compiling project in android studio

查看:61
本文介绍了重复条目:com/android/volley/AuthFailureError.class,同时在android studio中编译项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用外部库payu money sdk和linkedin-sdk,都使用凌空库,它们在编译项目时会提供AuthFailureError.class的重复条目

I am using external libraries payu money sdk and linkedin-sdk, both uses volley libraries, which while compiling project gives duplicate entry of AuthFailureError.class

错误:任务':app:packageAllDebugClassesForMultiDex'的执行失败.

Error:Execution failed for task ':app:packageAllDebugClassesForMultiDex'.

java.util.zip.ZipException:重复项:com/android/volley/AuthFailureError.class"

java.util.zip.ZipException: duplicate entry: com/android/volley/AuthFailureError.class"

我还添加了以下代码以排除模块,但仍然是相同的错误

i have also added following code to exclude module, but still same error

configurations{ all*.exclude module: 'com.android.volley' }

configurations{ all*.exclude module: 'com.android.volley' }

请帮助

推荐答案

我偶然发现了同样的错误,并且在阅读

I stumbled upon this same error, and after reading this, I was able to solve it.

尝试在您的应用程序目录build.gradle文件中添加此行-

Try adding this line inside your app dir build.gradle file -

android{
configurations {
    all*.exclude group: 'com.android.volley'
}}

希望这会有所帮助.

这篇关于重复条目:com/android/volley/AuthFailureError.class,同时在android studio中编译项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆