Я смотрел по всему Интернету, как включить библиотеку zxing в свой проект, и я нашел этот учебник: http://blog.dihaw.com/integrating-zxing-in-your-android-app-as-standalone-scanner/
Но когда я дошел до того, что вам нужно проверить, что BeepManager добавляет импорт R, я получаю всевозможные ошибки в моем проекте (даже в MainActivity), что он не смог найти R.
Также я нашел этот https://github.com/journeyapps/zxing-android-embedded/blob/master/README.md, который казался намного проще, потому что он был автоматически интегрирован с помощью gradle, но когда я его синхронизирую выдает сообщение об ошибке, что он не может найти файлы.
Любая помощь будет оценена:) Я новичок в Android Studio.
EDIT:
Я добавил настройки второго метода (тот, у которого установлены параметры gradle), к моему сообщению build.gradle и 4:
Error:Failed to find: com.embarkmobile:zxing-android-legacy:2.0.0
Error:Failed to find: com.google.zxing:core:3.0.1
Error:Failed to find: com.embarkmobile:zxing-android-integration:2.0.0
Error:Failed to find: com.embarkmobile:zxing-android-minimal:2.0.0
Любая помощь?
--- ОТВЕТ ---
Чтобы устранить эту проблему, мне пришлось отключить автономную работу на Gradle. Перейдите в настройки Android Studio > Gradle > Снимите флажок "Работа в автономном режиме" После этого вам хорошо идти!