无法将Google Play服务库导入项目 [英] Can't import Google Play Services library to project

查看:414
本文介绍了无法将Google Play服务库导入项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试将Google Play服务导入到我的项目中。



我正在使用Eclipse,然后转到文件 - >导入 - >现有的Android代码Workspace-> Next->浏览浏览:

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

这里我看到 samples / samples / panorama samples / plus 。如果我更深入浏览:

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

我收到错误或选择一个目录来搜索现有的Android项目,但目录中没有任何项目可供选择。我尝试按下刷新按钮,没有更新。





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





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

解决方案

我发现Android SDK管理器正在保存到与我正在查找的位置不同的位置。我在不同的文件中有两个Google Play服务,而在android-sdks下,并不是正确的位置。而是在我的工作区中的一个名为:adt-bundle-windows的文件。我认为由于安装了不同版本的Eclipse,文件位置已更改。


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.

解决方案

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.

这篇关于无法将Google Play服务库导入项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆