Gradle Error when try to add dependency for Zxing scanner

﹥>﹥吖頭↗ 提交于 2020-01-05 09:35:57

问题


I tried to add a dependency "me.dm7.barcodescanner:zxing:1.9.8" for the barcode scanner functionality. It populates Gradle error as given in image

click


回答1:


This happens because this library uses the old version com.android.support libs.

Try do this:

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


来源:https://stackoverflow.com/questions/53002571/gradle-error-when-try-to-add-dependency-for-zxing-scanner

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!