Search code examples
androidandroid-studioandroid-gradle-pluginbuild.gradlezxing

add zxing to build.gradle


I want to use xzing in android studio. To use that I added a dependency to the app/build.gradle but unfortunally when I sync the Gradle project it produces the following error

enter image description here


Solution

  • If I change in my project-gradle.build-File this:

    allprojects {
       repositories {
          //jcenter()
          jcenter({url "http://jcenter.bintray.com/"})
       }
    }
    

    It works :)