Studio中摇篮任务执行

Studio中摇篮任务执行

本文介绍了如何停止Android Studio中摇篮任务执行?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有摇篮的任务(S)执行Android Studio中停止?

Is there any legitimate way of Gradle task(s) execution stopping in Android Studio?

推荐答案

没有,摇篮(截至记者发稿,V1.10)具有您无法通过其API的工具,这是Android的工作室取消任务的限制用来与其守护程序进行通信。您可以在<一个跟踪这个进度href=\"https://$c$c.google.com/p/android/issues/detail?id=59464\">https://$c$c.google.com/p/android/issues/detail?id=59464 。它还美元的东西p $ pventing进步否则,我们希望能够做到,<一个href=\"https://$c$c.google.com/p/android/issues/detail?id=59965\">https://$c$c.google.com/p/android/issues/detail?id=59965

No, Gradle (as of this writing, v1.10) has a limitation that you can't cancel tasks through its tooling API, which is what Android Studio uses to communicate with its daemon. You can track the progress of this at https://code.google.com/p/android/issues/detail?id=59464 . It's also preventing progress on something else we'd like to be able to do, https://code.google.com/p/android/issues/detail?id=59965

在所有你能做的同时是要经过你的操作系统和手动杀摇篮过程,这是一个有点痛苦和混乱。这是可能的,它可能会在一些中间状态不​​好这将打乱未来的增量编译离开你的身材,但我不知道。

In the meantime about all you can do is to go through your OS and kill the Gradle processes manually, which is a little painful and messy. It's possible that it could leave your build in some intermediate bad state which would mess up future incremental compiles, but I don't know for sure.

这篇关于如何停止Android Studio中摇篮任务执行?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-01 18:23