I get the following error when I execute two different JavaExce tasks in two different command prompts. Both the tasks are defined in the same .gradle. One is a task to start my app and another to stop.
C:\projects\optimize>gradlew stop Using Gradle home…C:\Users\krik.gradle\gradle-1.0-milestone-9 Using Gradle user home…C:\Users\krik.gradle
FAILURE: Build failed with an exception.
- What went wrong: Could not open cache directory buildSrc (C:\projects\optimize\buildSrc.gradle\n oVersion\buildSrc). > Timeout waiting to lock cache directory buildSrc (C:\projects\optimize\buildSr c.gradle\noVersion\buildSrc). It is currently in use by another Gradle instance .
Owner PID: 2204
Our PID: 7864
Lock file: C:\projects\optimize\buildSrc.gradle\noVersion\buildSrc\cache.prop erties.lock
- Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
Total time: 1 mins 4.058 secs