Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

"Android Library Update” eclipse task randomly stuck my eclipse on start

It is stuck in cleaning output folder for “Project”. It is not always the same Project. So is there some workaround ?

like image 868
Renetik Avatar asked Feb 02 '23 07:02

Renetik


1 Answers

I tried the method of cleaning the project, but the library update happens too fast. I even assigned a custom keyboard shortcut to Clean and I still couldn't get it in there before it started.

I really didn't want to delete the .metadata folder because it is a pain in the arse to lose your workspace settings/preferences/setup.

So I tried:

  1. Make a copy of the .metadata folder
  2. Delete the original
  3. Launch eclipse (it will open with a default/reset workspace), but it will open fine.
  4. Quit eclipse
  5. Delete the new .metadata folder
  6. Make another copy of your original copy and rename it .metadata (basically put the original back)
  7. Eclipse should now launch fine. In my case the Android Library Update still ran but it actually finished within a few seconds instead of hanging.

Then for me the underlying issue was one of my library projects got into a really broken state. I went into the properties for it, unchecked isLibrary in the Android tab and then refreshed the project. Afterwards I turned the library flag back on and did a clean.

I also had a build error in the library code that had to be fixed.

Any how, hopefully that helps if you find yourself in a similar position. Good luck!

like image 86
cottonBallPaws Avatar answered Feb 06 '23 16:02

cottonBallPaws