Can't import Google Play Services library to p

2019-07-18 16:00发布

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.

enter image description here

I have Google Play Services installed in the SDK manager

enter image description here

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.

3条回答
Explosion°爆炸
2楼-- · 2019-07-18 16:27

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

查看更多
兄弟一词,经得起流年.
3楼-- · 2019-07-18 16:36

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.

查看更多
一夜七次
4楼-- · 2019-07-18 16:52
  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
查看更多
登录 后发表回答