I get following errors while setting up dagger 2.x in Android Studio 3.0 Canary 4
Error:(71, 20) Failed to resolve: com.google.dagger:dagger:2.x
Error:(73, 20) Failed to resolve: com.google.dagger:dagger-android:2.x
Error:(74, 20) Failed to resolve: com.google.dagger:dagger-android-support:2.x
My build files are like below:
dependencies {
//For DI - Dagger 2
implementation 'com.google.dagger:dagger:2.x'
annotationProcessor 'com.google.dagger:dagger-compiler:2.x'
implementation 'com.google.dagger:dagger-android:2.x' // If you're using classes in dagger.android
implementation 'com.google.dagger:dagger-android-support:2.x' // if you use the support libraries
annotationProcessor 'com.google.dagger:dagger-android-processor:2.x'
}
The project build file has below snippets
allprojects {
repositories {
jcenter()
maven { url "https://maven.google.com" }
maven { url "https://oss.sonatype.org/content/repositories/snapshots/" }
}
}
Your help is appreciated...