I\'ve been working with Eclipse 4.2 (Juno release 20120920-0800) on OS X 10.8.2 for a few weeks now, building apps for Android 3.0 and above. I have a quad core i7 MacBook P
Same problem, stuck at 0%. Ran
/Applications/eclipse/eclipse -clean
and everything worked great again. Modify that path for linux boxes.
Update (from the remark from @Janusz )
For mac users with eclipse outside application directory your clean command will looks similar to:
path/eclipse/Eclipse.app/Contents/MacOS/eclipse -clean
Go to your workspace directory \workspace\.metadata\.plugins\org.eclipse.core.resources\.projects
and delete all the projects in there.
Note: You are not going to lose your projects
All the other solutions did not work for me so I simply deleted all the .log files inside the folder [workspace]/.metadata and it worked again!
I know that this has been resolved but I thought I would share this link:
Solution One
Often times, this problem can be network related. Check if your network is behind a proxy. If so, you need to configure proxy on Eclipse. For that, go to “Windows” -> “Preferences” -> “General” -> “Network Connections”, and fill in your proxy info. Restart Eclipse after that. Conversely, it’s also possible that you have configured proxy on Eclipse before, but that you are no longer behind proxy. Make sure to disable proxy then.
Solution Two
Another solution is to clean up project-specific meta data directories which are stored under your workspace directory.
$ cd workspace/.metadata/.plugins/org.eclipse.core.resources/.projects $ rm -rf *
Restart Eclipse.
Solution Three
Check if an adb process is running. If so, kill the adb process, and restart Eclipse.
Solution Four
- Try deleteing the contents of the cache folder located in user profile under
.android\cache
- Try deleteing the ddms.cfg located in user profile under
.android
So this is what got me working again:
Resolved the problems with the different versions related to android-support-v4.jar. They were mismatched which causes problems if projects are related anyway.
The second one is not that obvious: I restarted the IDE from the shell, providing the $ANDROID_SDK_HOME
- Environment variable.
This got me a step further but the ide hangs on a different location.
Providing $ANDROID_HOME
finally got me all the way up again.
BTW: After this procedure it was not necessary in following starts of the IDE to set the environment variables again.
This is the solution I found which works correctly:
%USERPROFILE%/
on Windows or simply ~
on Linux/OS X (You can locate this folder from the Desktop).android
folder (This may be a hidden folder)cache
which is located inside .android
folderddms.cfg
which is located inside .android
folderHope that this will work for you.