【问题标题】:importing google play service reference to my map project将 google play 服务引用导入到我的地图项目
【发布时间】:2013-06-27 18:24:33
【问题描述】:

我在 Eclipse 中有一个 Android 地图项目,现在正在调试模式进行测试。问题是我正在尝试将 Google Play 服务引用添加到我的项目中。当我尝试从 Eclipse 导入此 Existing Code Into Work space 并选择 Android SDK安装播放服务的路径,然后按确定,我在我的项目上显示红色感叹号。有没有人知道可能是什么问题以及任何其他正确的方法来添加库的引用。请帮忙

【问题讨论】:

  • 您需要向我们提供有关 Eclipse 显示的错误的更多信息。
  • Description Resource Path Location Type The container 'Android Dependencies' references non existing library 'D:\android\android-sdk\extras\google\google_play_services\libproject\google-play-services_lib\bin\google-play-services_lib.jar' Track Build path Build Path Problem 这显示在问题中
  • 找不到jar,因为它没有jar。它是一个 android 库,您需要将其作为库包含。
  • 先生,我更新了我的 SDK,并且在 SDk 的 Extras 文件夹中有此路径,但 google-play-services_lib.jar 在那里丢失,我也删除并重新安装,但文件没有显示在那里
  • 有什么问题请指导我

标签: android google-maps


【解决方案1】:

Google BaseGameUtils 应定义为 LIBRARY 项目,您应将其作为 REFERENCE 添加到您的项目中。

请参阅 Google 提供的指南:https://github.com/playgameservices/android-samples/blob/master/README.md,我认为该指南相当准确。

这也可能有帮助:

Google Play Game Services leaderboard - Unable to set jars up correctly in Eclipse

祝你好运!

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2017-08-16
    相关资源
    最近更新 更多