手动导入ZXing源码使用扫码功能,1、下载该包。2、在项目的settings.gradle添加include ':app',':zxing'。3、在app的build.gradle依赖中添加 compile project ":zxing"