When using android studio 3+, you may encounter this problem:
2. The problem
After add some library to your gradle dependencies, click the build ,you may got this:
As you can see, I have imported the groudy compiler, but the gradle compiler complains the error.
3. How to solve it?
Just add this line to your build.gradle:
You can find detail android annotation processor compile problem solving documents here: