问题描述
我试图按照说明,但是在将库项目导入到我的工作空间中之后,我们会收到库包的多个错误。我修复了它报告的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?
推荐答案
:
如果您使用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的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!