新木材问题4.1.2

时间:2016-11-04 05:16:50

标签: android android-studio

当我在我的Android应用程序中尝试使用 stetho-timber Library 时,我遇到了这个问题:

  

错误:模块'com.facebook.stetho:stetho-timber:1.3.1'取决于一个   或更多Android库但是一个罐子

在检查其代码后,我发现它使用木材v3.0.1!

1 个答案:

答案 0 :(得分:0)

只需将此添加到build.gradle依赖项标记中即可排除stetho库中的木材, 因为它是旧版本并与新版本冲突:

dependencies {  
    compile ("com.facebook.stetho:stetho-timber:1.3.1") {  
        exclude group: "com.jakewharton.timber", module: "timber"  
    }  
    .  
    .  
    .