Android does not use AutoService. See the example code
Xxj-star opened this issue · 2 comments
Xxj-star commented
Xxj-star commented
chaoren commented
Android is not supposed to use anything. You have to add the annotation processor to the annotation-processor classpath yourself.
See https://github.com/google/auto/tree/main/service#getting-started
You will need
auto-service-annotations-${version}.jar
in your compile-time classpath, and you will needauto-service-${version}.jar
in your annotation-processor classpath.
If it's not getting added to the annotation-processor classpath or if it's not getting run, then it's a problem with your build system. You should ask for help on a forum like Stack Overflow. This repository is not for troubleshooting your projects.