Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
214 views
in Technique[技术] by (71.8m points)

android - Add Google Play Services to Eclipse project

I've red a number of posts and articles but it's not working for me. I am not able to add/use the Google Play Services in my project.

My steps:

  1. I start a project which is using the Google Api's 2.2
  2. I have download the Google Play Services using the SDK
  3. I import the Google Play Services into my Eclipse workspace
  4. Adding Google Play Services as a dependency in my project: Project -> Properties -> Android -> Library, Add -> google-play-services_lib

Steps 1 till 3 are fine, but I think the problem is in step 4. Nothing happens after I do step 4, I'm not seeing any change in my Project structure: no library is added. These steps are also described here.

The reason I know it is not working is because any import from the Google Play Services is giving an unresolved error.

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

I found that the play services libproject has to be imported onto the same physical drive as your project. (check the 'Copy projects into workspace' checkbox when you import)


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...