I\'m using Gradle 2.12 (or newer) with an appropriate version of the Android Gradle plugin in my project. Gradle 2.12 introduced the compileOnly configuration, so w
compileOnly
Simple use provided instead of compileOnly
provided
See https://github.com/google/auto/issues/324#issuecomment-212333044