Unable to reference Android library in my project

I would like to use android PagerSliding project

I imported it into my workspace. After that, I go into the properties of MY project, add the library, and then click Apply and ok, so I get:

Step 1

If I reopen the properties of my project right after that, what will I get (Eclipse seems to lose the link to the library).

Step 2

FYI: I used to have 2 workspaces, but now I use only one.

+4
source share
3 answers

I decided to solve the problem by uninstalling eclipse and reinstalling it seems to be an Eclipse error when I used 2 workspaces before ...

According to this question SO Link

+1
source

Removing the project and importing it worked again for me.

+1
source

I had the same problem when I try to change my workspace, so this is 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

+1
source

Source: https://habr.com/ru/post/1481603/


All Articles