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

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

问题描述

我要导入谷歌播放服务到我的项目。

我使用Eclipse和去文件 - >导入 - >现有的Andr​​oid code进入Workspace->下一步 - >浏览浏览的:

  C:\\用户\\阿米\\ Android的软件开发工具包\\演员\\谷歌\\ google_play_services

在这里,我看到了样本/图样本/全景样本/加。如果我浏览甚至更深:

<$p$p><$c$c>C:\\Users\\Ami\\android-sdks\\extras\\google\\google_play_services\\libproject\\google-play-services_lib

我得到的错误或选择目录中搜索现有的Andr​​oid项目,但目前还没有计划从目录中进行选择。我试过pressing刷新按钮并没有什么更新。

我有谷歌播放安装在SDK管理服务

我曾尝试:清洁和建设我的工作区。关闭并重新启动Eclipse的。重新启动我的电脑。卸载谷歌播放服务,并重新安装它。从Windows资源管理器中删除的文件,并与Android SDK管理器重新安装它们。我将不胜AP preciate任何帮助。


解决方案

我发现了Android SDK管理器中保存到一个位置不同的位置我一直在寻找。我有两个谷歌播放服务在不同的文件中,并在Android的软件开发工具包是不正确的位置。这是代替我的工作区一个名为下:ADT-束窗口。我认为该文件的位置,由于安装了不同版本的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.

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

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