Setting Explict Annotation Processor : <p>I am attempting to add a maven repository to my Android Studio project.
When I do a Gradle project sync everything is fine. However, whenever I try to build my apk, I get this error:</p>

<pre><code>Execution failed for task ':app:javaPreCompileDebug'.
&gt; Annotation processors must be explicitly declared now.  The following dependencies on 
the compile classpath are found to contain annotation processor.  Please add them to 
the annotationProcessor configuration.
 - classindex-3.3.jar
Alternatively, set android.defaultConfig.javaCompileOptions.annotationProcessorOptions
.includeCompileClasspath = true to continue with previous behavior.  Note that this 
option is deprecated and will be removed in the future.
See https://developer.android.com/r/tools/annotation-processor-error-message.html for more details.
</code></pre>

<p>The link included (<a href="https://developer.android.com/r/tools/annotation-processor-error-message.html" rel="noreferrer">https://developer.android.com/r/tools/annotation-processor-error-message.html</a>) in the error 404s so its of no help. </p>

<p>I have enabled annotation processing in the android studio settings, and added <code>includeCompileClasspath = true</code> to my Annotation Processor options. I have also tried adding <code>classindex</code>, <code>classindex-3.3</code> and <code>classindex-3.3.jar</code> to Processor FQ Name, but that did not help either.</p>

<p>these are the lines I have added to the default build.gradle under dependecies:</p>

<pre><code>dependencies {
    ...
    compile group: 'com.skadistats', name: 'clarity', version:'2.1.1'
    compile group: 'org.atteo.classindex', name: 'classindex', version:'3.3'
}
</code></pre>

<p>Originally I just had the "clarity" one added, because that is the one I care about, but I added the "classindex" entry in the hopes that it would fix it. Removing "clarity" and keeping "classindex" gives me the exact same error. </p>

<p>I'm not all too familiar with gradle/maven so any help would be appreciated.</p>
