不能建项目由于正在进行项目的Gradle同步 [英] Cannot build project due to gradle project sync in progress

查看:900
本文介绍了不能建项目由于正在进行项目的Gradle同步的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在使用Android项目0.82版本新。我创建一个新的应用程序(从零开始),然后我尝试运行应用程序。但在生成过程需要永远是因为项目的gradle同步失败,并在文本编辑器的顶部,它说,在建项目的gradle同步。这需要永远。我已经检查graddle包装特性,我已经在项目中1.12的gradle前完成下载。

下面是观念日志

  2014年8月6日22:51:33707 [284991] INFO  -  llij.help.impl.HelpManagerImpl  - 无法从罐子加载帮助集:文件:/// C :\\用户\\斯蒂芬\\应用程序数据\\本地\\的Andr​​oid \\ android的工作室\\帮助\\ ideahelp.jar /idea/Help.hs
javax.help.HelpSetException:无法解析
有一个IOException(C:\\用户\\斯蒂芬\\应用程序数据\\本地\\的Andr​​oid \\ android的工作室\\帮助\\ ideahelp.jar(系统找不到指定的路径))
解析失败空
  在javax.help.HelpSet<&初始化GT;(HelpSet.java:146)
  在com.intellij.help.impl.HelpManagerImpl.loadHelpSet(HelpManagerImpl.java:159)
  在com.intellij.help.impl.HelpManagerImpl.createHelpSet(HelpManagerImpl.java:133)
  在com.intellij.help.impl.HelpManagerImpl.invokeHelp(HelpManagerImpl.java:54)
  在com.intellij.ide.actions.ContextHelpAction.actionPerformed(ContextHelpAction.java:42)
  在com.intellij.openapi.actionSystem.ex.ActionUtil.performActionDumbAware(ActionUtil.java:164)
  在com.intellij.openapi.actionSystem.impl.ActionButton.actionPerformed(ActionButton.java:170)
  在com.intellij.openapi.actionSystem.impl.ActionButton.performAction(ActionButton.java:133)
  在com.intellij.openapi.actionSystem.impl.ActionButton.processMouseEvent(ActionButton.java:313)
  在java.awt.Component.processEvent(Component.java:6270)
  在java.awt.Container.processEvent(Container.java:2229)
  在java.awt.Component.dispatchEventImpl(Component.java:4861)
  在java.awt.Container.dispatchEventImpl(Container.java:2287)
  在java.awt.Component.dispatchEvent(Component.java:4687)
  在java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4832)
  在java.awt.LightweightDispatcher.processMouseEvent(Container.java:4492)
  在java.awt.LightweightDispatcher.dispatchEvent(Container.java:4422)
  在java.awt.Container.dispatchEventImpl(Container.java:2273)
  在java.awt.Window.dispatchEventImpl(Window.java:2719)
  在java.awt.Component.dispatchEvent(Component.java:4687)
  在java.awt.EventQueue.dispatchEventImpl(EventQueue.java:735)
  在java.awt.EventQueue.access $ 200(EventQueue.java:103)
  在java.awt.EventQueue中的$ 3.run(EventQueue.java:694)
  在java.awt.EventQueue中的$ 3.run(EventQueue.java:692)
  在java.security.AccessController.doPrivileged(本机方法)
  在java.security.ProtectionDomain $ 1.doIntersectionPrivilege(​​ProtectionDomain.java:76)
  在java.security.ProtectionDomain $ 1.doIntersectionPrivilege(​​ProtectionDomain.java:87)
  在java.awt.EventQueue中的$ 4.run(EventQueue.java:708)
  在java.awt.EventQueue中的$ 4.run(EventQueue.java:706)
  在java.security.AccessController.doPrivileged(本机方法)
  在java.security.ProtectionDomain $ 1.doIntersectionPrivilege(​​ProtectionDomain.java:76)
  在java.awt.EventQueue.dispatchEvent(EventQueue.java:705)
  在com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:697)
  在com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:520)
  在com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:335)
  在java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:242)
  在java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:161)
  在java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)
  在java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:146)
  在java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138)
  在java.awt.EventDispatchThread.run(EventDispatchThread.java:91)


解决方案

试图缓存失效,并重新启动几次不给任何效果后最后不知怎么的,我试图重新启动我的笔记本电脑,然后将它只是工作。构建能够最终完成。

I'm new on using android project version 0.82. I was creating a new apps (from scratch), and then I try to run the app. but the build process take forever because the gradle project sync failed, and in the top of the text editor, it says gradle project sync in progress. this takes forever. I've check the graddle wrapper properties, I've finished download the gradle 1.12 in the project before.

here is the idea log

2014-08-06 22:51:33,707 [ 284991]   INFO - llij.help.impl.HelpManagerImpl - Failed to load help set from 'jar:file:///C:\Users\stephen\AppData\Local\Android\android-studio\help\ideahelp.jar!/idea/Help.hs' 
javax.help.HelpSetException: Could not parse
Got an IOException (C:\Users\stephen\AppData\Local\Android\android-studio\help\ideahelp.jar (The system cannot find the path specified))
Parsing failed for null
  at javax.help.HelpSet.<init>(HelpSet.java:146)
  at com.intellij.help.impl.HelpManagerImpl.loadHelpSet(HelpManagerImpl.java:159)
  at com.intellij.help.impl.HelpManagerImpl.createHelpSet(HelpManagerImpl.java:133)
  at com.intellij.help.impl.HelpManagerImpl.invokeHelp(HelpManagerImpl.java:54)
  at com.intellij.ide.actions.ContextHelpAction.actionPerformed(ContextHelpAction.java:42)
  at com.intellij.openapi.actionSystem.ex.ActionUtil.performActionDumbAware(ActionUtil.java:164)
  at com.intellij.openapi.actionSystem.impl.ActionButton.actionPerformed(ActionButton.java:170)
  at com.intellij.openapi.actionSystem.impl.ActionButton.performAction(ActionButton.java:133)
  at com.intellij.openapi.actionSystem.impl.ActionButton.processMouseEvent(ActionButton.java:313)
  at java.awt.Component.processEvent(Component.java:6270)
  at java.awt.Container.processEvent(Container.java:2229)
  at java.awt.Component.dispatchEventImpl(Component.java:4861)
  at java.awt.Container.dispatchEventImpl(Container.java:2287)
  at java.awt.Component.dispatchEvent(Component.java:4687)
  at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4832)
  at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4492)
  at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4422)
  at java.awt.Container.dispatchEventImpl(Container.java:2273)
  at java.awt.Window.dispatchEventImpl(Window.java:2719)
  at java.awt.Component.dispatchEvent(Component.java:4687)
  at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:735)
  at java.awt.EventQueue.access$200(EventQueue.java:103)
  at java.awt.EventQueue$3.run(EventQueue.java:694)
  at java.awt.EventQueue$3.run(EventQueue.java:692)
  at java.security.AccessController.doPrivileged(Native Method)
  at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
  at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:87)
  at java.awt.EventQueue$4.run(EventQueue.java:708)
  at java.awt.EventQueue$4.run(EventQueue.java:706)
  at java.security.AccessController.doPrivileged(Native Method)
  at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
  at java.awt.EventQueue.dispatchEvent(EventQueue.java:705)
  at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:697)
  at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:520)
  at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:335)
  at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:242)
  at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:161)
  at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)
  at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:146)
  at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138)
  at java.awt.EventDispatchThread.run(EventDispatchThread.java:91)

解决方案

Finally somehow after trying to invalidate the cache and restart several times doesn't give any effect, I try to restart my laptop and then it just worked. the build can finally be done.

这篇关于不能建项目由于正在进行项目的Gradle同步的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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