依赖项commons-logging:commons-logging:对于调试,1.2会被忽略,因为它可能与Android提供的内部版本冲突 [英] Dependency commons-logging:commons-logging:1.2 is ignored for debug as it may be conflicting with the internal version provided by Android

查看:590
本文介绍了依赖项commons-logging:commons-logging:对于调试,1.2会被忽略,因为它可能与Android提供的内部版本冲突的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的gradle内容有一些依赖性,当我运行这个应用程序时,它会给我这样的错误:


警告:依赖项commons-logging:对于
debug,忽略commons-logging:1.2,因为它可能与
Android提供的内部版本冲突。
如果有问题,请用jarjar重新打包,以更改类包


解决方案

<我认为你应该从包含它的任何依赖中排除'commons-logging'。
它会是这样的:
compile('............'){
排除组:'commons-logging',模块:'commons-记录'
}


My gradle content some dependancy

and when i was run this app it will give me error like this.:

Warning:Dependency commons-logging:commons-logging:1.2 is ignored for debug as it may be conflicting with the internal version provided by Android. In case of problem, please repackage it with jarjar to change the class packages

解决方案

I think you should exclude 'commons-logging' from any dependency that includes it. its gonna be like this: compile ('............') { exclude group: 'commons-logging', module: 'commons-logging' }

这篇关于依赖项commons-logging:commons-logging:对于调试,1.2会被忽略,因为它可能与Android提供的内部版本冲突的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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