android studio dependencies apache.commons.logging失败

时间:2015-11-06 02:04:12

标签: android apache-commons-logging

  

依赖commons-logging但是失败和抛出   错误:抛出java.lang.ClassNotFoundException:   org.apache.commons.logging.LogFactory

dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'commons-logging:commons-logging:1.1.3'
compile 'log4j:log4j:1.2.17'
compile 'org.springframework:spring-core:4.0.2.RELEASE'
compile 'com.android.support:appcompat-v7:23.0.1'
compile project(':volley')}

1 个答案:

答案 0 :(得分:0)

您可以尝试andle同步您拥有的依赖项版本。

这是我在github上写的一个小工具:https://github.com/Jintin/andle

继续之后,它会在控制台中显示结果。

commons-logging:commons-logging: 1.1.3 -> 99.0-does-not-exist

如果您仍想使用它,您可以找到jar而不是使用gradle。