after upgrade to Gradle 2.4 the following warning appears in the build:
Defining custom 'clean' task when using the standard Gradle lifecycle plugins has been deprecated and is scheduled to be removed in Gradle 3.0
Let's get rid of it.
Upgrade Gradle version to 2.4
LGTM. +1 and committed.
here's the fix