unable to extend AbstractProcessor to create java annotation processor

Viewed 2975

I am trying to begin creating a javax annotation processor, im doing it from android studio for now. I just need the gradle dependency i think for it. Right now in gradle i have the following which i have tried:

provided 'javax.annotation:jsr250-api:1.0'

but when i try to build the following class it says it cant find AbstractProcessor class:

class MyAnnotationProcessor extends AbstractProcessor{
}

How do i get it to recognize this class ?

here is the exact error:

enter image description here

and my imports look like this:

enter image description here

and here is my java version:

 $java -version 
Picked up JAVA_TOOL_OPTIONS: -Xmx512m -Xms64m
java version "1.8.0_45"
Java(TM) SE Runtime Environment (build 1.8.0_45-b14)
Java HotSpot(TM) 64-Bit Server VM (build 25.45-b02, mixed mode)
2 Answers
Related