Jeremy
Jeremy

Reputation: 61

Bug android studio 3.0.1

I don't know how to solve that type of error, it was after i updated android studio in 3.0.1, and when i follow the link they is an error the link like "error 404". What should i do. Error:Could not resolve all files for configuration ':app:debugAnnotationProcessorClasspath'.

Could not find com.google.dagger:dagger-compiler:26.0.2. Searched in the following locations: file:/C:/Users/Jeremy/Documents/SDK/extras/m2repository/com/google/dagger/dagger-compiler/26.0.2/dagger-compiler-26.0.2.pom file:/C:/Users/Jeremy/Documents/SDK/extras/m2repository/com/google/dagger/dagger-compiler/26.0.2/dagger-compiler-26.0.2.jar file:/C:/Users/Jeremy/Documents/SDK/extras/google/m2repository/com/google/dagger/dagger-compiler/26.0.2/dagger-compiler-26.0.2.pom file:/C:/Users/Jeremy/Documents/SDK/extras/google/m2repository/com/google/dagger/dagger-compiler/26.0.2/dagger-compiler-26.0.2.jar file:/C:/Users/Jeremy/Documents/SDK/extras/android/m2repository/com/google/dagger/dagger-compiler/26.0.2/dagger-compiler-26.0.2.pom file:/C:/Users/Jeremy/Documents/SDK/extras/android/m2repository/com/google/dagger/dagger-compiler/26.0.2/dagger-compiler-26.0.2.jar file:/C:/Program Files/Android/Android Studio/gradle/m2repository/com/google/dagger/dagger-compiler/26.0.2/dagger-compiler-26.0.2.pom file:/C:/Program Files/Android/Android Studio/gradle/m2repository/com/google/dagger/dagger-compiler/26.0.2/dagger-compiler-26.0.2.jar https://jcenter.bintray.com/com/google/dagger/dagger-compiler/26.0.2/dagger-compiler-26.0.2.pom https://jcenter.bintray.com/com/google/dagger/dagger-compiler/26.0.2/dagger-compiler-26.0.2.jar https://repo1.maven.org/maven2/com/google/dagger/dagger-compiler/26.0.2/dagger-compiler-26.0.2.pom https://repo1.maven.org/maven2/com/google/dagger/dagger-compiler/26.0.2/dagger-compiler-26.0.2.jar https://maven.google.com/com/google/dagger/dagger-compiler/26.0.2/dagger-compiler-26.0.2.pom https://maven.google.com/com/google/dagger/dagger-compiler/26.0.2/dagger-compiler-26.0.2.jar Required by: project :app

Upvotes: 1

Views: 5153

Answers (1)

Pratik
Pratik

Reputation: 450

Add google() in your buildscript in the build.gradle file of project.

buildscript {
repositories {
    ...
    // You need to add the following repository to download the
    // new plugin.
    google()
}

dependencies {
    classpath 'com.android.tools.build:gradle:3.0.1'
}
}

https://developer.android.com/studio/build/gradle-plugin-3-0-0-migration.html

Upvotes: 13

Related Questions