Android 用户操作正在等待后台工作完成
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/12015552/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
the user operation is waiting for background work to complete
提问by gadss
I am using eclipse junno for my IDE for developing android programs.
我在 IDE 中使用 eclipse junno 来开发 android 程序。
my problem is just like this one : User Operation is waiting for "Building Workspace"
我的问题就像这样一个: 用户操作正在等待“构建工作区”
why did it happened and how can I solve this? I have waited lots of time about this case.
为什么会发生这种情况,我该如何解决?我已经等了很多时间关于这个案子。
right now it is look like this.
现在它是这样的。
采纳答案by Tyler Treat
Eclipse can have a tendency to hang sometimes for no apparent reason (usually because of memory). Just try restarting it and see if the problem persists. I've encountered this before and restarting Eclipse or the PC altogether usually solves it.
Eclipse 有时可能会无缘无故挂起(通常是因为内存)。只需尝试重新启动它,看看问题是否仍然存在。我以前遇到过这个问题,重新启动 Eclipse 或 PC 通常可以解决这个问题。
回答by Sambhaji Karad
I had exactly the same problem. For me helped adding '-clean' option at the first line of eclipse.ini file and restarting IDE. After adding this option eclipse clean all cached data in workspace each time it is started (that also mean it will be starting slower).
我遇到了完全相同的问题。对我来说,帮助在 eclipse.ini 文件的第一行添加“-clean”选项并重新启动 IDE。添加此选项后,eclipse 每次启动时都会清除工作区中的所有缓存数据(这也意味着它会启动得更慢)。
You can find more information about it here: How to repair hanging 'User Operation is waiting for “Building Workspace”' in eclipse http://www.eclipsezone.com/eclipse/forums/t61566.html
您可以在此处找到有关它的更多信息:如何修复 eclipse 中挂起的“用户操作正在等待“构建工作区” http://www.eclipsezone.com/eclipse/forums/t61566.html
回答by vivek
In my case, I increased values of -Xms
and -Xmx
args to 512
and 2048
respectively in eclipse.ini file. You can increase it according to you or according to your system ram.
And then restart eclipse.
就我而言,我增加值-Xms
和-Xmx
参数传递给512
,并2048
分别在eclipse.ini文件。您可以根据自己或根据您的系统内存来增加它。
然后重启eclipse。