Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
538 views
in Technique[技术] by (71.8m points)

eclipse - Android sdk content loader at 0%... and nothing works

Sorry if I'm asking this the wrong way (if I am, let me know what I should be doing instead.) The site warned me not to leave this as an answer and I don't have enough rep to add a comment, so I'm doing a new post.

Basically, I am having the exact same problem as this poster: Getting error message "Android sdk content loader stuck at 0%"

That is, when I open Eclipse it shows the message "Android sdk content loader 0%", and so my projects refuse to build. But I have tried ALL the responses listed there: turning off build automatically, cleaning all projects, deleting my debug keystore, deleting the adb process in the Activity Monitor (I'm on a Mac), switching workspaces, renaming projects, shutting Eclipse down and restarting it. I also made sure to install the latest version of the SDK (4.2, API 17, Jelly Bean). My phone was not plugged into the computer in the first place. I even deleted and reinstalled the ADT. And I STILL get the same problem. Please, somebody, tell me what's going wrong and how I can fix it.

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

Below scenario will work.

Go to your workspace directory workspace.metadata.pluginsorg.eclipse.core.resources\.projects

  1. Copy .projects folder and take backup for temporary.
  2. Now Delete .projects folder from workspace directory. (you will not loose your projects)
  3. Start Eclipse and wait for all progress ends at right/bottom corner. Once completed all processes, shutdown Eclipse.
  4. Paste .projects folder which you have backup earlier to workspace.metadata.pluginsorg.eclipse.core.resources directory. Overwrite existing .projects folder.
  5. Start Eclipse again. And all will work.

In above scenario Eclipse will automatically finds your projects as earlier. You do not have to import manually.

Working for me.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...