Error:Failed to resolve: annotationProcessor

sagar suri picture sagar suri · Nov 20, 2016 · Viewed 20.1k times · Source

This is the following error I am getting while adding a new gradle dependency to my android project. And this error is not project specific. I am getting the same error if I am adding the plugin in any other android project Error while adding any third party plugin

I also posted my project app level gradle module screenshot

App level gradle module

I even enabled Annotation Processor in the settings. Still no solution. Please help.

Answer

Ashwani Kumar picture Ashwani Kumar · Aug 5, 2017

use this in your project gradlefile:

allprojects {
    repositories {
        jcenter()
        maven { url 'https://maven.google.com' }
    }
}