问题
I'm french and I would use "google-play-service" so I followed the procedure on the official web site to google here and here
And I'm blocked at this step :
To add the dependency to Google Play Services into your project Project -> Properties -> Android -> Library, Add -> google-play-services_lib "
I explain: Normally the "dependency" must be a "green check" at left.
After to press the button "Apply" the "green check" is always green, but when I leave the windows (whith press button "OK") and I return on this windows (mouse right>properties>Android) I didn't have a "green check" but I have now a "red cross" (shoot3) ... I don't understand why ?
Did you have the same problem ?
screenshot 1, screenshot 2 and screenshot 3
回答1:
Try to copy the google-play-services_lib
next to your project's directory and open it from there.
Also you don't have to use Google Api's anymore - you can use Android Api.
回答2:
I was also having same problem. Location of Google play services and your project should be same.
If Google play services is in your work space then move your project to work space too.
Move Project to work space: Import project and check copy to work space!
回答3:
There can be one of the following mistakes: 1. Wrong Path 2. Since you have imported the project, so if by mistake you have deleted this imported project from workspace and while deleting you tick on delete contents from disk, it removes all files from android-sdk\extras\google\google_play_services\libproject\google-play-services_lib.In this cases re install google services from sdk manager. 3.while importing project dont forget to check the box saying "Copy projects into the workspace"
来源:https://stackoverflow.com/questions/14728293/import-google-play-service-dependency-red-cross