I get the following error after I try to build my project:
Error:android-apt plugin is incompatible with the Android Gradle plugin. Please use 'annotationProcessor' configuration instead.
I tried to add annotationProcessor '.....'
after every implementation
but no success to get rid of the error.
This happens after upgrading android studio to the latest version ( 3.0 ).
Edit:
Adding includeCompileClasspath true
inside defaultConfig
doesn't help:
javaCompileOptions {
annotationProcessorOptions {
includeCompileClasspath true
}
}
Any solutions?