无法将Google Play服务库导入项目

时间:2013-07-22 16:51:11

标签: android eclipse google-play-services

我正在尝试将google play服务导入我的项目。

我正在使用Eclipse并转到文件 - >导入 - >现有Android代码进入工作区 - >下一步 - >浏览浏览到:

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

我在这里看到samples/mapsamples/panoramasamples/plus。如果我更深入地浏览:

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

我收到错误或Select a directory to search for existing Android projects,但没有可从目录中选择的项目。我尝试按下刷新按钮,没有更新。

enter image description here

我在SDK管理器中安装了Google Play服务

enter image description here

我尝试过:清理和构建我的工作区。关闭并重新启动Eclipse。重新启动我的电脑。卸载Google Play服务并重新安装。从Windows资源管理器中删除文件并使用Android SDK Manager重新安装它们。我非常感谢任何帮助。

3 个答案:

答案 0 :(得分:6)

  1. 将您的Google Play服务从sdk->extras->google->googlePlay服务复制到其他位置(即桌面)
  2. 从那里将其导入Eclipse

答案 1 :(得分:5)

我发现Android SDK Manager保存到的位置与我看的位置不同。我在不同的文件中有两个Google Play服务,并且在android-sdks下不是正确的位置。它改为在我的工作区中名为adt-bundle-windows的文件下。我认为由于安装了不同版本的Eclipse,文件位置发生了变化。

答案 2 :(得分:1)

如果有人仍然无法找到Google Play服务项目.....请转到您的sdk经理并从Extra标签下载Google Play API ...希望它有所帮助......因为我有同样的问题

相关问题