Can't import Google Play Services library to project

送分小仙女□ 提交于 2019-12-24 02:06:21

问题


I am trying to import google play services into my project.

I am using Eclipse and went to File->Import->Existing Android Code Into Workspace->Next->Browse Browsed to:

C:\Users\Ami\android-sdks\extras\google\google_play_services

Here I saw samples/map, samples/panorama, and samples/plus. If I browse even deeper to:

C:\Users\Ami\android-sdks\extras\google\google_play_services\libproject\google-play-services_lib

I get the error or Select a directory to search for existing Android projects, but there are no projects to select from the directory. I tried pressing the refresh button and nothing updated.

I have Google Play Services installed in the SDK manager

I have tried: cleaning and building my workspace. Closing and restarting Eclipse. Restarting my computer. Uninstalling Google Play Services and reinstalling it. Deleting the files from Windows Explorer and reinstalling them with Android SDK Manager. I would greatly appreciate any help.


回答1:


  1. Copy your Google play services from sdk->extras->google->googlePlay services to a different location (i.e. Desktop)
  2. Import it into Eclipse from there



回答2:


I found that the Android SDK Manager was saving to a different location than where I was looking. I had two Google Play Services in different files and under android-sdks was not the correct location. It was instead in my workspace under a file called: adt-bundle-windows. I think the file location changed due to installing a different version of Eclipse.




回答3:


If some one still not able to find the google play serice project..... go to your sdk manager and download Google play API from Extra tags...Hope it help.... as i have the same issue



来源:https://stackoverflow.com/questions/17793112/cant-import-google-play-services-library-to-project

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!