Home > Mobile >  Custom annotations processor is not triggered
Custom annotations processor is not triggered

Time:10-16

Upgrade the android studio version 3.4, suddenly found that writing custom annotations can't generate the file before, debug the custom annotation processor found in the function are not performed, some people met this kind of situation? Seek solutions!

CodePudding user response:

After the rebuild the following message is
Task: app: compileDebugJavaWithJavac
Gradle may disable incremental compilation as the following the annotation processors are not incremental: auto - service - 1.0 - rc5. Jar (com. Google. Auto. Services: auto - service: 1.0 - rc5).
Consider setting the experimental feature flag android. EnableSeparateAnnotationProcessing=true in the gradle. The properties file to run the annotation processing in a separate task and make compilation incremental.

I don't know whether associated with this problem?

CodePudding user response:

The gradle. Add android properties. EnableSeparateAnnotationProcessing=true this line of code

CodePudding user response:

Use the one that Google autoService? To use annotationProcessor the library, and if can't find this class, plus compileOnly this library
  • Related