【问题标题】:Eclipse: Google play services lib doesn't exist in Rev. 30+Eclipse:Rev. 30+ 中不存在 Google Play 服务库
【发布时间】:2016-07-11 19:19:57
【问题描述】:

我知道,使用 Eclipse 进行 Android 应用开发是个坏主意,但我有一些问题,为什么我不能使用 Android Studio

所以在将 SDK 更新到 android N 并将 google play 服务更新到 rev.31 之后,google play lib 不存在。

我已经在谷歌上搜索过它作为 .ass 文件放在另一个文件夹中,但我不知道如何将其传输为通常的 .jar

在这种情况下,有什么想法可以代替使用 Android Studio 并继续使用 Eclipse 吗?

【问题讨论】:

    标签: eclipse jar google-play-services


    【解决方案1】:

    因此,由于权重较高,Google 将 google-play-services 拆分为更小的部分

    您会在 /extras/google/m2repository/com/google/android/gms 中找到它们(请记住服务是分开的)

    1. 查找您需要的库(例如广告)
    2. 将 .aar 重命名为 .zip
    3. 解压文件
    4. 使用 New -> Project -> Android Project from Existing Source Code 将项目导入 Eclipse
    5. 转到项目的属性并设置构建目标和“是库”标志
    6. 进入您创建的项目属性和链接库

    PS 0-4 可以通过在此处下载库来替换: https://github.com/dandar3/android-google-play-services-base

    【讨论】:

      猜你喜欢
      • 2016-10-24
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-03-13
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多