日食的a​​ndroid不能导入谷歌Play服务库 [英] eclipse android can not import google play services library

查看:176
本文介绍了日食的a​​ndroid不能导入谷歌Play服务库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,我是很新的Andr​​oid开发,我想了解如何使用谷歌地图API第2版。尝试许多教程后,我似乎总是有与谷歌Play服务库的一个问题。不知何故,Eclipse中不能正确导入。我想这个教程 https://github.com/the codePATH / android_guides /维基/谷歌 - 地图片段的指南,当我尝试包括谷歌游戏服务项目作为一个库,首先这一切都不错,顺利,我得到的项目一个绿色的勾属性 - Android的 - 库窗口,但是当我关闭它,我仍然得到许多不能解析为一个类型的错误。我回到我的地方添加库窗口,我看到项目下,红色的X和一个问号,而不是绿色的勾。我试过其他几个教程和我一直有这个库中的问题。我喜欢这个教程,我真的想使它工作。我也试过在工作区中手动复制库文件夹,但没有任何工作。我GOOGLE了像疯了似的想找到一个答案,但我总能找到的东西,我(如手动在工作区或类似的东西复制库)受审。我很绝望,我真的不知道为什么它不能只看到该库,请帮助。另外,这是我的第一篇到计算器,所以要温柔:)

hello i am quite new to Android development and i want to learn how to use the google Maps API v2. After trying numerous tutorials, i always seem to have a problem with the google play services library. Somehow, Eclipse can't import it properly. I tried this tutorial https://github.com/thecodepath/android_guides/wiki/Google-Maps-Fragment-Guide and when i try to include Google Play Services project as a library, first it all goes nice and smooth, i get a green tick in the Project Properties - Android - Library window, but when i close it i still get lots of "can't be resolved to a type" errors. I return to the window where i add the library and i see a red "X" and a question mark under "project" instead of the green tick. I tried several other tutorials and i always have a problem with this library. I like this tutorial and i would really like to make it work. I also tried to manually copy the library folder in the workspace but that didn't work either. I googled like crazy trying to find an answer but i always find something that i tried before (like manually copying the library in the workspace or something similar). I am quite desperate, i really have no idea why it can't just see the library please help. Also this is my first post to StackOverflow so be gentle :)

后来编辑(解决):
当我进口的下载项目,我一直是在桌面上和多数民众为什么它没有工作,当我在工作区中的一切复制它的工作。谢谢大家非常的帮助初学者:)

later Edit (solved): when i imported the downloaded project, i kept it on the desktop and thats why it didn't work, after i copied it in the workspace everything worked. Thank you all very much for helping a beginner :)

推荐答案

在Eclipse中添加库最重要的是要记住,你的项目和库项目需要在同一个工作区。

The important thing in adding a library in eclipse is to remember that your project and the library project need to be in the same workspace.

要解决这个按照下面的方式,

To solve this follow below ways,

您可以在的Google Play服务图书馆项目复制到同一个工作区,其中的主要项目是在那里。

You can copy the google-play-services library project to the same workspace where your main project is there.

其他

在导入库偏食记得要检查复制项目进入工作区将图书馆的副本添加到您的工作空间。

While importing the library to eclipse remember to check copy projects into workspace which will add a copy of the library to your workspace.

这篇关于日食的a​​ndroid不能导入谷歌Play服务库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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