我试着关注 https://developer.android.com/google/play-services/setup.html Eclipse for Mobile Developers (Juno) 中的说明,但在将库项目导入我的工作区后,库包出现多个错误。我修复了它报告的 AndroidManifest.xml 错误,但现在我无法在 Eclipse 中打开项目,说 .project 描述文件包含无效信息。一个简单的安装就到此为止。我试过卸载它,重新下载它,但我仍然收到多个错误。任何建议如何让它工作?
最佳答案
http://developer.android.com/google/play-services/setup.html的第3步存在误导性步骤:
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.
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 文件。
关于eclipse - 如何将 Google Play Services 2 库安装修复到 Eclipse,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14142496/