当我尝试在我的 Android 应用程序中使用 stetho-timber 库时,我遇到了这个问题:
Error:Module 'com.facebook.stetho:stetho-timber:1.3.1' depends on one or more Android Libraries but is a jar
怎么了?!
最佳答案
在查看其代码后,我发现它使用的是 timber v3.0.1!
只需将它添加到您的 build.gradle 依赖项标签中,以排除 stetho 库中的木材, 因为它是旧版本并且与新版本冲突:
dependencies {
compile ("com.facebook.stetho:stetho-timber:1.3.1") {
exclude group: "com.jakewharton.timber", module: "timber"
}
.
.
.
我最近发现了 Facebook Stetho Library,使用起来非常棒,试试吧! :)
关于java - 新 Timber 版本 4.1.2 的 Stetho-Timber 库问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39946426/