2013-10-15 146 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進行卸載。然後重新下載它。 然後嘗試再次參考它。