Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android Studio can't find javax.annotation.processing.AbstractProcessor

I want to learn Annotation, and i create a demo project. But when I create a class extends AbstractProcessor, Android Studio can't find this class. How can I add it.

like image 345
Charon Chui Avatar asked Dec 05 '22 00:12

Charon Chui


1 Answers

In Android Studio, if you go on File > New > New Module and select Java Library instead of Android Library, you should then be able to extend AbstractProcessor.

like image 167
Greg Avatar answered May 16 '23 05:05

Greg