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
Asked
Active
Viewed 2,431 times
1
-
https://stackoverflow.com/questions/18543668/integrate-zxing-in-android-studio does it work? – Myszsoda Sep 05 '17 at 08:30
-
no. "Failed to resolve: com.google.zxing:core:3.2.0" and "Failed to resolve: com.journeyapps:zxing-android-embedded:3.0.2" – Andre Sep 05 '17 at 08:45
2 Answers
1
Maybe helpful, this syncs fine for me in studio (its and old project with older lib but should update fine):
repositories {
mavenCentral()
maven {
url "https://raw.github.com/embarkmobile/zxing-android-minimal/mvn-repo/maven-repository/"
}
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
}
}
dependencies {
compile 'com.google.zxing:core:2.2'
compile 'com.embarkmobile:zxing-android-minimal:1.2.1@aar'

GordonW
- 1,120
- 2
- 16
- 36
0
If I change in my project-gradle.build-File this:
allprojects {
repositories {
//jcenter()
jcenter({url "http://jcenter.bintray.com/"})
}
}
It works :)

Andre
- 1,249
- 1
- 15
- 38