Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Eclipse Android SDK - 'Building Workspace' deadlock

  • I have two Android projects in my Eclipse workspace (one is a library project used by the other)
  • Compiling the first (library) project works fine
  • The second one always hangs (at 98% complete)

I know there are similar issues covered in articles and blogs, but none of these guides seem to work.

So far, I have:

  • Cleaned projects
  • Created clean workspaces
  • Even had to do a clean install of Ubuntu (so all Eclipse, Java, Android SDK are clean)

Please help! I am at the end of my ropes with this problem!

I am running Ubuntu 10.04, Eclipse 3.5.2 (everything is 32-bit). This setup had been working for a month or so, and just broke the other day.)

like image 483
pjama Avatar asked Jan 20 '11 02:01

pjama


3 Answers

Building workspace gets stuck at 99% If Eclipse hangs while "building workspace", try killing any running adb processes in the background. There actually seem to be a variety of possible causes, but when using the ADT Eclipse plugins, this might work.

See here: http://android-sdk.wikispaces.com/Building+workspace+stuck+at+99%25

like image 72
Gerhard Hagerer Avatar answered Oct 04 '22 07:10

Gerhard Hagerer


I found that when i plugged in a device while eclipse was running, it would halt progress on building. Unplugging it immediately fixed things. I had some bad drivers it seems.

like image 20
leech Avatar answered Oct 04 '22 07:10

leech


Thanks for your comment suggestions.

I went through the logs, and they were not very informative.

It turns out the problem was with a corrupt PNG image (located in the library project -- which was compiling correctly!)

It was this post that led me to search the 'drawable' directories.

like image 44
pjama Avatar answered Oct 04 '22 06:10

pjama