score:-1

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.

score:0

all the above solutions didn't work for me.

in eclipse under problems tab check errors- you might see the unable to delete file and project path name.

now go to your workspace directory - check project.properties for all the project stated under problems tab and check

target=android-21

the target value is valid and exists in your android-sdk/platforms/ folder

in my case target=google,google-api-16 was causing the issue. replace that and it solved.

score:0

worked! all i did was to open terminal and typed:

    cd documents/workspace/.metadata/.plugins

and then... typed

rm -rf

... in that .plugins category.

score:0

there are various reasons for this problem, and each have a different solution. for a linux environment, i made a alias to take care of most of these as they happened overtime. to have all of those in one place, you could try this:

  • add the following in your ~/.bash_aliases file.

    alias eclipse='rm -rf ~/.android/ddms.cfg;rm -rf ~/workspace/myapps/.metadata/.plugins/org.eclipse.core.resources/.projects/*;mv ~/workspace/myapps/.metadata/.plugins/org.eclipse.e4.workbench/workbench.xmi ~/workspace/myapps/.metadata/.plugins/org.eclipse.e4.workbench/workbench.xmi.bkp;rm -rf ~/.android/cache/;cd ~/desktop/adt-bundle-linux-x86_64-20140702/eclipse;nohup ./eclipse & cd -;'
    
  • refresh source using source ~/.bash_aliases

note:

  • ~/workspace/myapps is my workspace, you'll have to configure your's accordingly.

  • ~/desktop/adt-bundle-linux-x86_64-20140702/eclipse is the location of my eclipse executable,and you'll have to configure your's accordingly

score:1

i made this batch file to fullfill the task explained by slhck's answer for windows systems:

@echo off
set eclipsefolder=%cd%
cd /d %userprofile%/.android
rd /s /q cache
del ddms.cfg /f
cd /d %eclipsefolder%
eclipse -clean -refresh
exit

i explained such approach in this post on my blog.

score:2

my solution:

install all the docs in the sdk manager.

score:2

i prepared little script to make it easy dealing with this reoccuring and very annoying problem. open terminal, then:

open ~/.bash_profile

at the end of the file paste this function:

function eclipse-clean() {
  echo "removing ddms.cfg file" 
    cd ~/.android/
    rm ddms.cfg 
  echo "removing cache"
    cd cache/
    rm -rf *
  echo "done! you can open eclipse now."
}

then all you have to do now is:

source ~/.bash_profile

and whenever you are stuck just type in terminal window:

eclipse-clean

score:2

just right click on eclipse and run it as a administrator i was also having the same problem after this it was working fine actully sometimes the windows do not give the permission to access to sdk in normal user so you have to give admin permissions in order to work android sdk or content loader

this approach:

shut down eclipse then go to yourworkspace\.metadata\.plugins\org.eclipse.e4.workbench and remove "workbench.xmi", now restart eclipse.

score:3

i'm on a mac and using adt, can confirm that the following worked for me.

cd workspace/.metadata/.plugins/org.eclipse.core.resources/.projects
rm -rf *

no amount of restarting the eclipse, or rebooting the mac was helpful. it seems that eclipse gets into this stage because of stopping abruptly. i had to force boot my mac and this issue seems to be happening since then.

score:7

it turns out this problem indeed occurs when your internet connection is flaky, slow, etc.

as soon as i got back to my normal internet connection, the content would load fine again, within less than a few seconds.

score:7

i have tried all the solution but i didn't get solution. after that i have disconnected internet and deleted ddms.cfg from .android folder -> open eclipse -> dialog of statistics send to google? -> selected no and finally worked for me.

edited:

i have tried eclipse -clean command in command prompt and that also worked for me.

note: for eclipse -clean command first you have to select path of eclipse folder where you have placed.

thanks.

score:22

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!

score:27

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

  1. try deleteing the contents of the cache folder located in user profile under .android\cache
  2. try deleteing the ddms.cfg located in user profile under .android

score:56

i have used some other answers here to fix this problem but i came across it again recently, and none worked. i didn't want to re-install or delete my workspace, so i finally found one that did work that might help someone else. delete the file:

/workspace/.metadata/.plugins/org.eclipse.e4.workbench/workbench.xmi

you can make a backup first, if you like. it stores your workbench settings (perspective state, file paths for menu options, etc.) but eclipse loaded and i didn't have to re-install anything like some answer suggest. and i haven't seen this anywhere.

score:103

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

score:209

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 

score:567

this is the solution i found which works correctly:

  1. make sure that eclipse is not active. if it is active kill eclipse from the processes tab of the task manager
  2. open %userprofile%/ on windows or simply ~ on linux/os x (you can locate this folder from the desktop)
  3. go to .android folder (this may be a hidden folder)
  4. delete the folder cache which is located inside .android folder
  5. delete the file ddms.cfg which is located inside .android folder
  6. start eclipse

hope that this will work for you.


Related Query

More Query from same tag