Android Studio에서 Gradle 작업 실행을 중지하는 방법은 무엇입니까?
Android Studio에서 Gradle 작업 실행을 중지하는 합법적 인 방법이 있습니까?
./gradlew --stop
터미널에서 호출하면 모든 gradle 프로세스가 종료됩니다.
아니요, Gradle (이 글을 쓰는 시점에서 v1.10)에는 Android Studio가 데몬과 통신하는 데 사용하는 도구 API를 통해 작업을 취소 할 수 없다는 제한이 있습니다. https://code.google.com/p/android/issues/detail?id=59464 에서 진행 상황을 추적 할 수 있습니다 . 또한 https://code.google.com/p/android/issues/detail?id=59965에서 할 수있는 다른 작업의 진행을 방해합니다.
그동안 할 수있는 일은 OS를 살펴보고 Gradle 프로세스를 수동으로 종료하는 것입니다. 이는 약간 고통스럽고 지저분합니다. 향후 증분 컴파일을 엉망으로 만드는 중간 불량 상태로 빌드를 남겨 둘 수는 있지만 확실하지는 않습니다.
Android Studio 1.3.2에서는 Gradle이 IDE 화면 맨 아래에 빌드 될 때 kill 버튼이 나타납니다.
아무 일도하지 않는 것 같지만 적어도 추진할 것이 있습니다. 휘! :디
Android 스튜디오를 종료하는 것은 gradle 데몬을 죽이는 또 다른 방법입니다. 또는 Android 기기에 배포가 중단 된 경우 기기를 분리하면 프로세스가 중지 될 수 있습니다 (이상적인 솔루션도 아님).
Rami Kuret과 Flavio Faria에게 감사드립니다.
터미널에서 . \ gradlew --stop 을 호출 하면 Windows OS 용 Android Studio의 모든 gradle 프로세스가 종료됩니다.
윈도우 용 안드로이드 스튜디오 왼쪽 하단에 터미널이 있습니다.
때 마다 다른 방법은 바로 사용 실패
ps -A | grep gradle | awk '{ print $1; }' | xargs kill -9
'gradle'keywork로 모든 프로세스의 목록을 가져 와서 강제로 종료합니다.
나는 이것이 오래된 질문이라는 것을 알고 있지만 이제 Android Studio 1.2를 사용하면 Android Studio를 종료하여 현재 gradle 작업을 취소 할 수 있습니다. 확인 종료 dilog가 열립니다. 백그라운드 작업을 취소하고 예를 선택하면 스튜디오를 종료하지 않고 gradle 작업이 취소됩니다.
다른 빌드 작업을 실행하기 전에 프로젝트를 정리해야합니다. 그렇지 않으면 뭔가 엉망이 될 수 있습니다.
(저는 Mac OS X에 있습니다)
프로세스를 끝내려면 다음을 수행 할 수도 있습니다.
- 작업 표시 줄을 마우스 오른쪽 버튼으로 클릭 한 다음 "작업 관리자"로 이동하거나 간단히 CTRL+ SHIFT+를 눌러 작업 관리자로 이동합니다.ESC
- 그런 다음 실행중인 Java 프로세스를 종료합니다.
.\gradlew --stop
gradle 프로세스를 종료 한 후 Android 스튜디오 하단에있는 터미널에서 실행 하고 프로젝트를 정리하고 프로젝트 를 다시 실행하면 자세한 정보를 위해 이미지를 볼 수 있기를 바랍니다.
이를위한 Android Studio 플러그인이 있습니다 : https://github.com/shchurov/GradleStop . ./gradlew --stop을 호출하는 "gradle stop"명령과 메뉴 항목 만 추가합니다.
"합법적 인"방법은 아니지만 이것이 내가하는 일입니다.
- Click on Gradle Sync while your build process is ongoing.
- Android Studio will warn you with something like "Continue with Project Closing?". Click yes.
The build process will be cancelled and the gradle Sync operation will begin which is relatively quicker (as compared to waiting for the whole build process to complete, as i have a project with MANY library modules)
The way I solved this was: Go to your project-->graddle-wrapper.properties(Graddle Version) - Then edit the distributionURl to the version you want. Here's a picture:
there is two easy way exist to stop it without killing process.
the first one is that you load two project
with android studio, and when you close your project, the gradle building project, it will close immediately.
the second one is simply click on the file
and click close project
and it will stop instantly.
the benefits of these method is, you don't need to wait too much to start android studio again.
Kill studio.exe process from Taskmanager and then Restart your machine. This is the only thing that working for me. If you kill every related process and don't restart the machine, you can't run or build your app because it will say "Another gradle instance running
As of Android Studio 3.0, the little red cross button next to the gradle build status indicator bar seems to be working!
On windows, goto run by pressing windows-logo + R and type taskkill /f /im studio64.exe
that will kill android studio and stop gradle
참고 URL : https://stackoverflow.com/questions/21184794/how-to-stop-gradle-task-execution-in-android-studio
'Programming' 카테고리의 다른 글
Windows 라이선스 키의 모든 순열 (0) | 2020.08.22 |
---|---|
다른 페이지에서 로그인이 필요한 페이지에 액세스하기위한 CURL (0) | 2020.08.22 |
Swift에서 SCNetworkReachability를 사용하는 방법 (0) | 2020.08.22 |
Xcode 6 스토리 보드 확대 / 축소를 활성화하는 방법은 무엇입니까? (0) | 2020.08.22 |
JQuery를 사용한 노란색 페이드 효과 (0) | 2020.08.22 |