【问题标题】:Why google_play_service_lib is broken in eclipse? [closed]为什么 google_play_service_lib 在 Eclipse 中坏了? [关闭]
【发布时间】:2014-11-27 10:09:27
【问题描述】:

我一直在尝试将google_play_service_lib 添加到我的项目中,但它在库旁边显示了一个红色的 X 标记。结果,我无法为我的项目使用该库。但不幸的是,这个相同的 adt 包在其他计算机上运行良好。我拥有link1link2 中显示的所有内容。但为什么会这样?我真的很困惑。它如何在我朋友的另一台计算机上运行良好?

【问题讨论】:

  • 分享屏幕截图以更好地理解
  • 我没有太多的声誉给图像伙伴..

标签: android eclipse google-play-services


【解决方案1】:

可能存在android-support-v4.jar 的多重引用问题。
试试这个链接
Google map API v2 is not working

【讨论】:

    【解决方案2】:

    确保库和项目在同一个地方

    1 Copy the libraries in the same folder as your project
    2 Import the libraries (file > Import > Existing Project in workspace)
    3 Open properties of library > Android and select Is Library
    4 Open project properties > Android > Add (library)
    5 Select the library
    6 save the properties
    

    Ref

    【讨论】:

      【解决方案3】:

      您必须从 android SDK 管理器安装 google play 服务库。当前的问题可能出在您的库项目上。

      使用以下链接http://android-er.blogspot.in/2012/12/setup-google-play-services-sdk-in.html

      http://www.androidhive.info/2013/08/android-working-with-google-maps-v2/

      希望这会帮助你的朋友:)

      【讨论】:

      • 我已经从 sdk manager 安装了 google play service lib 并尝试过..问题仍然存在..
      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2014-09-03
      • 1970-01-01
      • 1970-01-01
      • 2011-03-12
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多