Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
183 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.

question from:https://stackoverflow.com/questions/14371725/add-google-play-services-to-eclipse-project

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

1 Reply

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)


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...