1

I am going to use "library" in "SHER" application. So I made "library" "is library" and used it in "SHER" app. by adding library:
image

When I look back, it is red crossed:
image2

I am using the ABS. I had imported all the applications from the downloaded "ABS". Please help me

Tim Penner
  • 3,551
  • 21
  • 36
uuu
  • 43
  • 4
  • 1
    Obvious question. Is the library on its current path accessible? – SmartK8 Jan 27 '13 at 08:57
  • You must use relative path to reference the library project, not absolute path. Check out [this answer](http://stackoverflow.com/questions/10200751/eclipse-will-not-recognize-project-as-library-actionbarsherlock-viewpagerindica/10219498#10219498) for more details. – yorkw Jan 27 '13 at 09:09

6 Answers6

2

this means that the project cannot be found and there for you are referencing nothing.

you should remove the broken reference and import it again from the correct location

it can also mean that you removed the project referenced from your environment and you should either re-open the project or import it back to eclipse.

thepoosh
  • 12,497
  • 15
  • 73
  • 132
  • @SmartK8 yes, it is accessible and other applications are also accessing it But for my application,"library" is not accessible – uuu Jan 27 '13 at 09:03
1

Select the row with the red line on it and click Remove. Then Click the Add button, and select library from the dialog box that opens to add the library project to your project, based on their current locations.

Raghav Sood
  • 81,899
  • 22
  • 187
  • 195
1

It shows that the library where it lies at which path that path doesn't exists.

You need to first remove that library. Click on that library and select Remove button.

After that click on Add button ,and select your relevant library and add it into your application.

I hope this will help you.

Thanks.

GrIsHu
  • 29,068
  • 10
  • 64
  • 102
1

Just add the google-play-services.jar file in lib folder directly. Clean the project. Hope it helps.

0

I solved this problem by imported the project and it's reference all together.

enter image description here

(Fig 1: Enter the path and click refresh to show all projects in that folder. Check the project and it's references)

enter image description here

(Fig 2: Reference project path become relative, and red cross didn't appear any more.)

I don't why importing reference project separately doesn't work. The only difference I guess were the paths.

Update: checkout this post: In eclipse, unable to reference an android library project in another android project

Community
  • 1
  • 1
aztack
  • 4,376
  • 5
  • 32
  • 50
-1

Red cross mean broken reference to solve that problem you should copy that library in workspace and then import that library in eclipse.

After that you can successfully use that library with green tick symbol in your project.

Manish Butola
  • 557
  • 6
  • 15