Eclipse hangs at the Android SDK Content Loader

前端 未结 17 1989
感情败类
感情败类 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:47

    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
    

提交回复
热议问题