【问题标题】:Could not locate google-play-services_lib.jar, but is there找不到 google-play-services_lib.jar,但在那里
【发布时间】:2015-02-28 16:42:00
【问题描述】:

一天前我决定将 Eclipse 更新到最新版本时,我的项目使用的 BaseGameUtils 和 GooglePlay 服务库一切正常 Luna 服务版本 2 (4.4.2) 内部版本号:20150219-0600

然后我开始遇到项目问题。 我确实清理并重建了整个工作区,甚至重新启动 Eclipse,修复项目属性...添加支持库...但我仍然无法解决

> [... BaseGameUtils] Could not locate google-play-services_lib.jar'.
> This will not be added to the package

当然,BaseGameUtils 和 GooglePlayServices 被标记为“Is library”,我已经检查了 jar

file /media/dotteri/proyectos/google-play-services_lib/bin/google-play-services_lib.jar
/media/dotteri/proyectos/google-play-services_lib/bin/google-play-services_lib.jar: Java Jar file data (zip)

所以,有吗,但不知何故 Eclipse 找不到 jar。

这个人和我有同样的问题:Dx Could not locate '../google-play-services_lib.jar'. This will not be added to the package

我错过了什么吗?谢谢

[已解决]

或多或少地解决了。我刚刚创建了一个新项目,并将源代码移到了那里。我知道这不是解决问题的最佳方法,但它确实有效。谢谢你。问题不在于 Eclipse。

【问题讨论】:

  • 切换到 Android Studio。

标签: android eclipse google-play-services


【解决方案1】:

在 Eclipse 中,转到“构建路径>配置构建路径”,然后在左侧选择“Android”,在该屏幕下方删除 google play 服务并重新添加。

这是 google play 服务的路径:

【讨论】:

  • 也许你可以复制 de jar 并放入 LIBS 文件夹,然后添加到构建路径....
猜你喜欢
  • 2014-02-01
  • 2019-03-24
  • 1970-01-01
  • 2013-07-29
  • 2021-01-06
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2012-12-17
相关资源
最近更新 更多