如何将Google Play Services 2 Library安装到Eclipse [英] How to fix Google Play Services 2 Library install to Eclipse

查看:154
本文介绍了如何将Google Play Services 2 Library安装到Eclipse的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图按照 https://developer.android.com/在Eclipse for Mobile Developers(Juno)中提供了google / play-services / setup.html 说明,但是在将库项目导入到我的工作空间中之后,我们会收到库包的多个错误。我修复了它报告的AndroidManifest.xml错误,但现在我无法在Eclipse中打开该项目,说.project描述文件包含无效信息。这么简单的安装。我已经尝试卸载它,重新加载它,我仍然得到多个错误。任何建议如何使其工作?

I've tried to follow https://developer.android.com/google/play-services/setup.html instructions in Eclipse for Mobile Developers (Juno), but am getting multiple errors with the library package after importing the library project into my workspace. I fixed the AndroidManifest.xml error it reported, but now I can't open the project in Eclipse saying the .project description file contains invalid information. So much for a simple install. I've tried uninstalling it, redownloading it, and I still get the multiple errors. Any suggesions how to get it working?

推荐答案

http://developer.android.com/google/play-services/setup.html



/ extras / google / google_play_services / libproject / google-play-services_lib
库项目复制到您维护Android $的源代码树中b $ b应用程序项目。

Copy the /extras/google/google_play_services/libproject/google-play-services_lib library project into the source tree where you maintain your Android app projects.

如果您使用Eclipse,请将库项目导入
工作区。单击文件>导入,选择Android>现有Android代码
到Workspace,然后浏览到库项目的副本
导入它。

If you are using Eclipse, import the library project into your workspace. Click File > Import, select Android > Existing Android Code into Workspace, and browse to the copy of the library project to import it.

不要做第一个副本。相反,只做第二部分,并选中将项目复制到工作区中的框。我发现如果我做了第一部分,我最终会得到空的xml文件。

Don't do the first copy. Instead just do the second part and check the box that says "Copy projects into workspace". I found that if I did the first part I would end up with empty xml files.

这篇关于如何将Google Play Services 2 Library安装到Eclipse的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆