LoginSignup
5
5

More than 5 years have passed since last update.

ZXingをAndroidStudioでセットアップ

Posted at

AndroidStudio便利ですね。(厳密にはgradleが便利ですね!)

便利なのは、大体gradleに1行書けばライブラリが利用できる部分にあるのですが、これはmavenで管理されているライブラリに限ります。

登録されているかどうかは以下のサイトから確認可能です。
http://search.maven.org/

QRコードの認識ライブラリのZXingは1.5までのバージョンはmavenから検索可能ですが、2.0からはリポジトリの追加が必要です。

https://github.com/embarkmobile/zxing-android-minimal

gradle
repositories {
    mavenCentral()

    maven {
        url "https://raw.github.com/embarkmobile/zxing-android-minimal/mvn-repo/maven-repository/"
    }
}

dependencies {
    compile 'com.embarkmobile:zxing-android-minimal:2.0.0@aar'
}

このようにリポジトリを追加すればOKです!!

5
5
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
5
5