它是目前在使用由另一个实例摇篮 [英] It is currently in use by another Gradle instance

查看:253
本文介绍了它是目前在使用由另一个实例摇篮的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是新来的摇篮构建系统。我想做一些关于它的基本功能。我跑/命令行编译。我指的是用户指南。而且,做一些简单的任务。

I'm new to Gradle build system. I want to do some basic functions on it. I'm running/building it in command line. I am referring User guide. And, doing some simple tasks.

当我开始运行简单的任务,这是成功打造。但是,一些次后,它显示它目前正由另一个摇篮例如使用,变成构建失败 。我使用一个终端运行任务。我没有跑在那个时候任何东西。

When I start to run simple tasks, it was build successfully. But, After some times, it is showing "It is currently in use by another Gradle instance" and becomes BUILD FAILED. I'm using a terminal for run the task. I didn't run anything at that time.

如果我关闭,这就产生错误的终端,这个问题就迎刃而解了。但是,我知道它不是该溶液。

If I closed the terminal which generate the error, this problem would be solved. But, I know that it is not the solution for that.

这是为什么错误经常来吗?

Why is this error coming frequently?

如何解决呢?

和,请参考任何一个环节,以提高我的摇篮知识构建系统的Andr​​oid。

And, Please refer any link to improve my knowledge on Gradle Build system in Android.

感谢你在前进!

推荐答案

我是坚持了这个错误,不得不吹走我的用户的的内容.gradle /缓存/ 文件夹和我的项目的 .gradle / 文件夹中的内容来获得又往前走。

I was stuck with this error and had to blow away the contents of my user's .gradle/caches/ folder and the contents of my project's .gradle/ folder to get going again.

不知道是什么原因引起的,可能是构建失败,在锁定状态保持这些文件?

Not sure what caused it, possibly a failed build that kept these files in a locked state?

这篇关于它是目前在使用由另一个实例摇篮的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆