TheSquad
TheSquad

Reputation: 7506

Can't reference an Android library into my project

I would like to use the android project PagerSliding

I have imported it into my workspace. After that I get into MY project properties add a library, and then click apply and ok, so I get :

Step 1

If I reopen MY project properties right after here's what I get (Eclipse seems to loose the reference to the library).

Step 2

FYI : I did have 2 workspaces before, but now I'm using only one.

Upvotes: 4

Views: 1665

Answers (3)

ibrahim saputra
ibrahim saputra

Reputation: 417

i had the same problem there when i try to change my workspace so this my solution:

1. import and copy all project data including library project into workspace
2. delete the old project reference by Right-click on the project-->Properties-->Android-->Library, and select corrupted library(so that waht i call it) and choose Remove
3. clean project first (to refresh ur project properties)
4. go to library project Properties-->Android-->Library and check the is library if it does'nt click Apply then OK
5. if the library project is library is already checked, first Unchecked it then Clean the library project after that do the Step 4 again
6. go to project that u want the library are in then Right-click on the project-->Properties-->Android-->Library, Add then choose the library project (it should be there) and click Apply then OK
7. if still doesn't appear clean the project once more time and that should do

thanks

Upvotes: 1

mneri
mneri

Reputation: 2217

Deleting the project and importing it again worked for me.

Upvotes: 1

TheSquad
TheSquad

Reputation: 7506

I have resolved to issue by removing eclipse, and reinstalling, seems to be a Eclipse bug when previously using 2 workspaces...

According to this question SO Link

Upvotes: 1

Related Questions