Gradle 尝试为 Zxing 扫描器添加依赖项时出错

Gradle Error when try to add dependency for Zxing scanner

我尝试为条形码扫描器功能添加依赖项 "me.dm7.barcodescanner:zxing:1.9.8"。它填充 Gradle 错误,如图

所示

click

发生这种情况是因为此库使用旧版本 com.android.support 库。

尝试这样做:

implementation ("me.dm7.barcodescanner:zxing:1.9.8") {
    exclude group: "com.android.support"
}