Before running my application I would like to uninstall any instances on the device. Running the task uninstallAll
manually does this perfectly.
How can I call this command from my build.gradle
so that this occurs each time automatically?
Before running my application I would like to uninstall any instances on the device. Running the task uninstallAll
manually does this perfectly.
How can I call this command from my build.gradle
so that this occurs each time automatically?
What you may need is to set defaultTasks:
defaultTasks uninstallAll
or specify appropriate tasks dependencies:
runTaskName.dependsOn(uninstallAll)