Eclipse hangs at the Android SDK Content Loader

前端 未结 17 1874
感情败类
感情败类 2020-11-30 16:14

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

相关标签:
17条回答
  • 2020-11-30 16:33

    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 
    
    0 讨论(0)
  • 2020-11-30 16:35

    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

    0 讨论(0)
  • 2020-11-30 16:39

    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!

    0 讨论(0)
  • 2020-11-30 16:41

    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
    0 讨论(0)
  • 2020-11-30 16:42

    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.

    0 讨论(0)
  • 2020-11-30 16:43

    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.

    0 讨论(0)
提交回复
热议问题