无法安装谷歌播放-服务到Eclipse正确(试图获取地图工作) [英] Can not install google-play-services into Eclipse correctly (trying to get maps working)

查看:168
本文介绍了无法安装谷歌播放-服务到Eclipse正确(试图获取地图工作)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前wokspace设置是这样的:

My current wokspace setup looks like this:

然而,人们告诉我,拿到地图的工作,我也需要有谷歌播放services_lib.jar在我的Android的依赖关系文件夹,要做到这一点的方法是通过做:到谷歌播放服务到项目的项目 - >属性 - > Android的 - >库,添加 - >谷歌播放services_lib

However, people have told me that to get maps working, I also need to have "google-play-services_lib.jar" in my "Android Dependencies" folder, and the way to do that was through doing: "to Google Play Services into your project Project -> Properties -> Android -> Library, Add -> google-play-services_lib"

与唯一的问题是,它始终是的最初的绿色标记后的的,它变成一个的红十字会的时候重新开放项目 - >属性 - > Android的 - >库......还没有谷歌播放services_lib.jar在prooject被添加到Android的依赖关系

The only problem with that is it always after the initial green marker, it turns to a red cross when re-opening "Project -> Properties -> Android -> Library" ...and also no "google-play-services_lib.jar" gets added to "Android Dependencies" in the prooject

这个问题是场外弹簧这样的:<一href="http://stackoverflow.com/questions/15301607/trying-to-get-maps-v2-android-demo-working/15302134">Trying获取地图V2的Andr​​oid演示工作在那里我被告知上述必要获取地图在我的应用程序工作。 (否则1膨胀包含地图片段在XML中得到错误。)

This question is an off-spring of this: Trying to get maps v2 Android demo working where I was told above was necessary to get maps working in my app. (Otherwise one gets error during inflating the XML containing the maps fragment.)

推荐答案

你有没有试过用谷歌的API 而不是的Andr​​oid 4.2.2 ?使用将使用谷歌地图相关性。

Have you tried to use Google APIs instead of Android 4.2.2? Using that will use Google Maps dependencies.

我刚刚作出了一个工作程序(它抛出任何错误,但我是懒得做的关键),使用谷歌地图V2,而不是谷歌的API为构建而Android 4.1。这是我的过程。

I just made a "working app" (it throws no errors but I was too lazy to make a key) using Google Maps v2 and not Google APIs as build but Android 4.1. This was my procedure.

  1. 下载从SDK下载管理器库。
  2. 复制文件夹谷歌播放services_lib其中有这样的路径... / Android的SDK /演员/谷歌/ google_play_services / libproject /谷歌播放services_lib的地方,我把我的图书馆另一个文件夹。
  3. 在Eclipse中我选择了新项目 - 机器人项目从现有的code。它得到了进口,没有任何问题。
  4. 右键单击该测试项目,单击属性 - 机器人 - 添加 - 谷歌播放services_lib现在是我的工作区
  5. 在看看它的工作原理是试图继承 com.google.android.gms.maps.MapFragment
  1. Download the library from the SDK download manager.
  2. Copied the folder "google-play-services_lib" which had this path ".../android-sdk/extras/google/google_play_services/libproject/google-play-services_lib" to another folder where I keep my libraries.
  3. In Eclipse I chose New Project - Android Project from Existing Code. It got imported without any problems.
  4. Right click the test project, click Properties - Android - Add - google-play-services_lib which now is in my workspace.
  5. See if it works by trying to subclass com.google.android.gms.maps.MapFragment.

请,如果你得到任何错误回应,如果你这样做的权利它将所有的工作。祝你好运。

Please respond if you get any errors, if you do it right it will all work. Good luck.

这篇关于无法安装谷歌播放-服务到Eclipse正确(试图获取地图工作)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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