Can't execute project due to gradle project sync

I am new to using Android version 0.82. I have been creating new applications (from scratch) and then I try to start the application. but the build process takes forever because the gradle project sync failed and at the top of the text editor it says gradle project sync. it takes forever. I check the properties of the graddle shell, I ended up downloading gradle 1.12 in the project earlier.

here is the event 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)

      

+3


source to share


2 answers


Finally after trying to invalidate the cache and restarting multiple times has no effect, I try to restart my laptop and then it just worked. the assembly can finally be done.



+4


source


In the interest of why this is happening, the reason is that you are looking straight in the face at what it says at the beginning of the above error log: "Help set could not be loaded" or some of them. I'm totally baffled as to how project sync or build might affect this.

The IDE is trying to launch or read from the HelpSet banner, possibly because you clicked a Help button or clicked a menu item. If the referenced JAR file actually exists at the specified location, then the internal file may not be readable into the JAR.



What the restart "solves" is again odd; better guess to fix it? In my case, the NetBeans IDE has a console log available from the View menu, and I assume that other IDEs have a debug, diagnostic, or "console" log somewhere. Check the IDE log; it might take a little time and do some research to see what was published as a result.

This is not strictly an android studio, or an idea, or even a Java problem; any sufficiently advanced bit of software or IDE can experience this as well.

0


source







All Articles