Tag Archives: Java annotation

25Sep/23

error: incompatible types: NonExistentClass cannot be converted to Annotation

25, 2023 /Developers/ — This error has given me sleepless nights. The app worked fine but I updated the Gradle version it’s stopped working due to this one error
The error message “error: incompatible types: NonExistentClass cannot be converted to Annotation” means that the compiler is trying to convert a class called NonExistentClass to an annotation, but this is not possible because annotations are a special type of class. Continue reading