为什么我不能为Android库安装谷歌云消息?

[英]why can't I install Google Cloud Messaging for Android Library


I'm following the instruction about using gcm here http://developer.android.com/guide/google/gcm/gs.html, and I'm stuck at the following step:

我正在遵循使用gcm的指示,http://developer.android.com/guide/google/gcm/gs.html,我将在以下步骤中:

Install the Helper Libraries To perform the steps described in the following sections, you must first install the helper libraries (reference: client and server). From the SDK Manager, install Extras > Google Cloud Messaging for Android Library. This creates a gcm directory under YOUR_SDK_ROOT/extras/google/ containing these subdirectories: gcm-client, gcm-demo-appengine, gcm-demo-client, gcm-demo-server, and gcm-server.

安装帮助程序库来执行以下部分中描述的步骤,您必须首先安装Helper库(引用:客户机和服务器)。从SDK管理器,为Android库安装额外的>谷歌云消息。这将在YOUR_SDK_ROOT/extras/谷歌/包含这些子目录下创建一个gcm目录:gcm-client、gcm-demo-appengine、gcm-demo-client、gcm-demo-server和gcm-server。

In my SDK manager, I can't find the option: Google Cloud Messaging for Android Library, as I captured in this screenshot enter image description here, what I should do to resolve this? Thanks

在我的SDK管理器中,我找不到选择:谷歌云消息的Android程序库,就像我在截图中捕捉到的一样,我应该做些什么来解决这个问题?谢谢

3 个解决方案

#1


8  

I had this same issue. You must update EVERYTHING else in the Eclipse plug-in before GCM will show up. Force an update from the sdk manager and it will show up once the version is current.

我也有同样的问题。在GCM出现之前,您必须更新Eclipse插件中的其他所有内容。从sdk管理器中强制更新,一旦版本为当前,它就会显示出来。

#2


3  

Use the Android SDK Manager to update your SDK to r20, after which you'll also need to update your Eclipse plugin. You'll then find the Google Cloud Messaging for Android Library under Extras in the SDK manager, along with everything else. Just select what you want to install.

使用Android SDK管理器将您的SDK更新到r20,之后您还需要更新您的Eclipse插件。然后,您会发现在SDK管理器中,Android库的谷歌云消息,以及其他所有内容。只需选择要安装的内容。

And if following error comes :- android sdk manager nothing was installed

如果出现以下错误:- android sdk管理器没有安装。

Then

然后

  1. Go to the folder where android-sdk resides.
  2. 转到android-sdk所在的文件夹。
  3. Right click on SDK Manager and select run as administrator.
  4. 右键单击SDK管理器并选择run作为管理员。
  5. Restart eclipse.
  6. 重新启动eclipse。

#3


1  

  1. Run Eclipse
  2. 运行Eclipse
  3. Go Eclipse Menu :: Help >> Install New Software
  4. Go Eclipse菜单::帮助>>安装新软件。
  5. in the Install Window setting like this If youe select "Work with " list box ADT Site :: my case is like that "ADT Site - https://dl-ssl.google.com/android/eclipse" Check all

    在安装窗口设置中,如果你选择“使用”列表框ADT站点::我的例子是“ADT站点- https://dl-ssl.google.com/android/eclipse”。

    • Develop Tools
    • 开发工具
    • NDK Plugins and Next and finish...
    • NDK插件和Next和finish…
  6. Now go to "Android SDK Manager" window You will see in "Extras" category and "Google Cloud Messaging for Android Library"

    现在进入“Android SDK管理器”窗口,您将看到“附加”类别和“Android库的谷歌云消息传递”。

智能推荐

注意!

本站翻译的文章,版权归属于本站,未经许可禁止转摘,转摘请注明本文地址:http://www.itdaan.com/blog/2012/07/10/71cbbfcb2beecfbf2949afcffce3af6d.html



 
© 2014-2019 ITdaan.com 粤ICP备14056181号  

赞助商广告