【问题标题】:Can't setup Google play service library for Google Drive in eclipse无法在 Eclipse 中为 Google Drive 设置 Google Play 服务库
【发布时间】:2014-03-07 04:14:07
【问题描述】:

我想在我的应用程序中集成 Google Drive api。我按照this tutorial 设置示例,this link 设置 Google Play 服务库。问题是当我将 Google Play 服务库链接到我的项目时,我遇到了以下问题:

这是我的详细信息:

有谁知道这些问题?

【问题讨论】:

  • 您需要在manifest.xml文件中的<application>标签下添加google_play_services版本为<meta-data>标签
  • @SimplePlan 我已经添加了。你可以在我的图片中看到。

标签: android eclipse google-drive-api


【解决方案1】:

在你Manifest.xml 内添加这个标签<application> 标签

 <meta-data
            android:name="com.google.android.gms.version"
            android:value="@integer/google_play_services_version" />

【讨论】:

  • @R4j 你试过清理和重建你的库项目吗?
  • @R4j 你有最新版本的播放服务 LIB 吗?如果不更新到最新版本。并重新导入库项目(如果您已经更新)。
  • 我有最新的播放服务库。我在导入到我的工作区之前对其进行了更新。问题是原始库没有version.xml 文件,我不知道为什么
  • 然后将此version.xml 粘贴到您的库项目中;s values folder www31.speedyshare.com/Hm3SK/download/version.xml
  • 我重新安装了 Google Play 服务库后,它运行良好。非常感谢你:)
【解决方案2】:

这里有一些信息:https://github.com/seanpjanson/140201-gdaa(参见 readme.txt,第 4c 点)。您可能会发现一些有用的信息位。最简单的 HACK 是在清单中粘贴“version.xml”中的版本号(如 libver 14 的 4132500)。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2018-03-31
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2013-05-27
    • 1970-01-01
    相关资源
    最近更新 更多