I am trying to add google play services library to my project. I follow the procedure of adding a library correctly. After adding it properly when I next time check library section in properties it shows red cross in front of added library. I have attached the screenshot also. Any help please?
Asked
Active
Viewed 875 times
0
-
1check this http://stackoverflow.com/questions/17611017/importing-google-play-service-library-showing-a-red-x-next-to-this-reference-and – Raghunandan Mar 20 '14 at 06:42
-
2Make sure host project and library project are in same workspace. – Vipul Mar 20 '14 at 06:43
-
remove the previous library first and add again and select ok – jyomin Mar 20 '14 at 06:46
2 Answers
5
Make sure that the libraries and the project are at the same place, i.e.
- Copy the libraries in the same folder as your project
- Import the libraries (file > Import > Existing Project in workspace)
- Open properties of library > Android and select Is Library
- Open project properties > Android > Add (library)
- LSelect the library
- save the properties
If this does not work for you copy the jar files from its lib folder and paste it in the projects lib. This should only be done if the above method doesn't work

Farhan Shah
- 2,344
- 7
- 28
- 54
0
If project name or path changed,
Select item (red cross marked library project)
Remove.
Add again.

ChangUZ
- 5,380
- 10
- 46
- 64