Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can't Stop Gradle Build

Android Studio 2.2.2. Did a build of my project and after several minutes I noticed that it still hadn't completed and at the bottom of my screen Android Studio said I had a process running. When I clicked on it it said it was the Gradle Build so I clicked to stop it. The display changed to

Stopping - Gradle Build Running

But it never seems to stop. If I restart the build that whole sequence repeats itself so now I have TWO

Stopping - Gradle Build Running

dialogs. But they never actually stop, even after 15+ minutes! If I try to shut down Android Studio it puts up an "Are You Sure?" dialog warning me I have background tasks running.

What's the right way to shut these down cleanly and how do I prevent this from happening?

like image 426
user316117 Avatar asked Feb 01 '17 20:02

user316117


1 Answers

Run the following in a terminal:

./gradlew --stop

It kills all the gradle processes.

like image 160
Suhayl SH Avatar answered Nov 15 '22 04:11

Suhayl SH