2013-10-15 147 views
0

我在写一个应用程序,以显示谷歌地图,我refrencing this link无法添加添加依赖于我的Google地图项目

我下载到SDK

路径\extras\google\google_play_services\libproject\google-play-services_lib

的谷歌播放服务项目后

当我尝试这个google-play-services_lib项目导入到我的项目资源管理器中,也没有任何项目被发现进口

项目内容包含enter image description here

一次我导入该项目日食说No Project Found请快照

enter image description here

我缺少什么,这样我可以的Google Play-service_lib显示我的地图,请帮助!

在此先感谢! :)

+0

请按照此处的步骤http://developer.android.com/google/play-services/setup.html – Raghunandan

+1

从现有代码创建Android项目。新 - > Android->现有代码中的Android项目 –

+0

您已导入我的项目在项目中如何在我的项目中添加依赖关系 –

回答

1

尝试通过以下步骤如下导入:

1) Copy the path of your library. 
2) In you Eclipse select File menu>New>Project... 
3) From dialog select Android>Android Project from Existing Code and paste your path of the library and add it in your eclipse. 

enter image description here

enter image description here

编辑:

enter image description here 就是这样。

+0

@GrlsHu我成功地这样做,我怎么可以将依赖性添加到我的项目 –

+0

你想问你想在你的项目中添加这个库? – GrIsHu

+0

@GrlsHu是的,我在问这个 –

1

尝试这样,

点击右键>新建>项目>安卓> Android项目在现有代码

选择从位置您的库项目。

希望这会起作用。

+0

感谢Amit的支持但无法添加依赖项目到我的项目 –

+0

@raghavchopra右键单击您的项目>属性> Android>添加您的图书馆项目>应用>确定 –

+0

Guota i am这样做,但是当我点击添加什么都没有显示一切freexed –

0

看起来您下载的Google Play服务库存在一些问题。 因为正如您在指南中看到的,并且从这里给出的答案中看出的那样,您遇到的行为不是它假设的。

我会尝试使用SDK Manager进行卸载。然后重新下载它。 然后尝试再次参考它。