Im trying to get myself to github. After I moved the project into a local repository, there an error occured in libraries paths, it seems that they are remembering the former path in my workspace? Any ideas? It says that library is missing, but it actually is in the project's folder. Any help appreciated. THere is a screenshot: library error
-
I'm having a similar problem. It seems to be a bug in File->Move when applied to a project. It doesn't move the library references correctly. Even after I manually re-added the libraries, the old incorrect addresses remained. So although my files themselves have no errors, the "missing" library references remain, and are viewable but not removable in the Build Path dialog. I'll see what else I can figure out. – BeccaP Sep 27 '13 at 18:49
3 Answers
when your library is project with source and not jar:
- Right click on project dir - Properties
- Choose Android on left side
- In a lower "Library" section will be reference to old library with red cross
- remove it
- add library from new location
- enjoy
when your library is jar:
- Right click on project dir - Properties
- Choose Java build Path on left side
- Choose Libraries tab
- remove old libraries
- add new external jars from your location
- enjoy
or:
do steps 1-4 and then:
- copy your jar library to libs dir of android project
- right click on newly copied jar in libs
- choose build path -> add to build path from menu
- enjoy
Hope it helps you and somebody else ;)

- 12,285
- 8
- 58
- 67
I found the answer to this question to be helpful: Cannot Add Library to Android Project in Eclipse.
It wasn't enough to add the libraries back in manually. Doing Project->(right click) Properties->Android->Add and then adding the library made it work (#4 in answer I linked).
Update: on a couple of other projects I tried this with, I also needed to close the project [(right-click)->Close Project], and re-open it (double-click). Then I tried to run it; it failed once; then worked.
To sum up, this is what worked for me the most reliably:
1) Properties->Java Build Path->Libraries->Add Jar to add my libraries
2) Properties->Android->Add to add them again for real somehow
3) Close and reopen project
4) Attempt to run; fail; errors go away; run again. Success.
Sigh.
I have found that restarting the Eclipse IDE often fixes referential issues after moving into git repo.
I generally use Android Private Library folder for external jars, and you cannot remove/add these like directly referenced libraries.

- 10,111
- 21
- 80
- 120