Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error:Failed to resolve: annotationProcessor

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.

like image 920
sagar suri Avatar asked Nov 20 '16 11:11

sagar suri


2 Answers

use this in your project gradlefile:

allprojects {
    repositories {
        jcenter()
        maven { url 'https://maven.google.com' }
    }
}
like image 162
Ashwani Kumar Avatar answered Oct 19 '22 06:10

Ashwani Kumar


I had same issue, and problem was I forgot to add;

repositories {
    maven { url 'https://jitpack.io' }
}
like image 35
Mohamed Avatar answered Oct 19 '22 06:10

Mohamed