You can also edit the Run / Debug configuration and add a clean task.
Click "Change Configuration"

In the left list of available configurations, select your current configuration, and then in the right part of the dialog box, under Before starting, click the plus sign and select Run Gradle task

In the new window, select the gradle project and in the Tasks field enter clean .

Then move your gradle clean on top of Gradle -Aware make
Oleg Osipenko May 6 '15 at 3:13 p.m. 2015-05-06 15:13
source share