I've started a new project in Android Studio and I want to import the zxing-android-embedded to allow to me create a simple barcode scanner within my application. Found here on github
Following instruction on there and also on different sources like this SO answer: https://stackoverflow.com/a/23788163/3364482
However I have added the compile optins to my build.gradle
but I'm getting the "Failed to resolve" errors:
Failed to resolve: com.google.zxing:core:3.2.0
Failed to resolve: com.journeyapps:zxing-android-embedded:2.3.0
Failed to resolve: com.journeyapps:zxing-android-integration:2.3.0
But as far as I'm aware my buid.gradle is as instructed:
apply plugin: 'com.android.application'
android {
compileSdkVersion 23
buildToolsVersion "23.0.1"
defaultConfig {
applicationId "com.myapps.practice.helloworld"
minSdkVersion 19
targetSdkVersion 23
versionCode 1
versionName "1.0"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
repositories {
jcenter()
}
dependencies {
compile 'com.journeyapps:zxing-android-embedded:2.3.0@aar'
compile 'com.journeyapps:zxing-android-integration:2.3.0@aar'
compile 'com.google.zxing:core:3.2.0'
compile 'com.android.support:appcompat-v7:23.1.1'
compile 'com.android.support:design:23.1.1'
}
EDIT: I'm not in Offline Mode.