


This was weird because I don't develop for Android, just using IntelliJ for Mac OS. Open Gradle wrapper fileThe build file may be missing a Gradle plugin.

Upgrade plugin to version 2.3.2 and sync projectThe project 'wq-handler-service' may be using a version of Gradle that does not contain the method. Possible causes:The project 'wq-handler-service' may be using a version of the Android Gradle plug-in that does not contain the method (e.g. Initially the import didn't work, and then when I restarted IntelliJ, I got these messages from the Gradle Plugin: Gradle DSL method not found: 'annotationProcessor()' For me it didn't work after doing all of the steps suggested in the question and in the top answer.
