简体   繁体   中英

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 :

步骤1

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

第2步

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

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

删除项目并再次导入它对我有用。

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM