Is there a way to execute the gradle task once after the completion of the project with the gradle files?
I tried to set the dependency of the task with preBuild, as I saw that gradle:build starts when Sync is executed. But the problem is that the dependency is not working, the task is not running, and I have to manually start the task after each synchronization.
This is basically what I have tried so far.
apply plugin: 'com.android.library' ... task myTask { ... } gradle.projectsEvaluated { preBuild.dependsOn(myTask) }
I also tried to establish the dependency of the task with other tasks that, as I see it, are started (: generate {Something}), but this also failed.
Is there anything you can do to complete the gradle task after each synchronization? I am using gradle 2.2.1 + Android Studio 1.0.2
android android-studio gradle
doodeec
source share