【发布时间】:2020-03-03 14:38:44
【问题描述】:
我从这里下载zxing-android-embedded 4.1.0:https://repo.spring.io/plugins-release/com/journeyapps/zxing-android-embedded/4.1.0/
将此库添加到libs目录和sync后,该库可用:
正如你在图片中看到的 IntentIntegrator 类是存在的,但我不能使用这个代码:
IntentIntegrator integrator = new IntentIntegrator(activity);
我是 Android 新手,非常感谢您的帮助
注意:
我导入import com.google.zxing.integration.*;
我尝试通过将依赖项添加到build.gradle 来下载此库,但 gradle 无法下载它。我尝试了不同的存储库。
【问题讨论】: