First of all, to download zxing source, because the Zxing service content is relatively broad, we first download all the source code, use the time as needed to load.
or download https://www.oschina.net/question/tag/zxing from open source ChinaDownload the good zip
after extracting the inside file is
The files we need are already marked, and the core file needs to be packaged into jars, but because Android studio packs the jar is troublesome, so we can download it directly from the Internet, but we need to pay attention to the versionhere we give an address to download the core jar package http://search.maven.org/search zxing after opening
The following list appears
Locate the core and click the version number. Download the jar package then we open Android Studio
Import Eclipse Project, find Android in Zxing project, import
then we found that the compilation did not pass because there were also jar packages and some files were not imported We import the downloaded core jar package into the project
then right-click, as Class Library, add to Project
Finally, we need to copy the Cameraconfigurationutils file under the Android-core file to the directory
then we can run the zxing official QR code scan. But we need to transform this program into its own QR code scanner as needed.
Run Google's official zxing QR code scanner