17

I am executing a some gradle tasks from a shell script, and am finding that i am unable to kill the process:

enter image description here

I click stop process like shown in the image, but it doesnt stop the Espresso UI tests from executing on the emulator. the shell script is as simple as "./gradlew spoonDebugAndroidTest"

Is there someway i can stop the tests without closing the emulator, and get rid of the red box saying i have process running?

1ak31sha
  • 501
  • 7
  • 18

2 Answers2

7

That can be fixed by following these steps:

  1. Open 'Run' tab in Android Studio
  2. Tap 'X' next to test which has just passed

Android Studio guide

Eugene Brusov
  • 17,146
  • 6
  • 52
  • 68
  • this is not running a shell script – 1ak31sha Dec 05 '19 at 14:19
  • 1
    Sorry to disappoint you, @1ak31sha but it actually *is* a running shell script, just handled by the Android Studio process. This actually got rid of the running processes (that you can see with `CTRL` `F2`) for me. – Martin Marconcini Dec 18 '19 at 11:14
0

You can try to execute this in Android Studio's Terminal : ./gradlew --stop. It should stop all running tasks.