【问题标题】:Google play services lib 9.0 and higherGoogle Play 服务库 9.0 及更高版本
【发布时间】:2026-02-14 14:05:02
【问题描述】:

我可以从那里下载 google play services lib 9.0 及更高版本。我需要实施奖励视频广告并将 sdk 更新到修订版 33,但在那里找不到 lib 项目。

【问题讨论】:

    标签: android eclipse google-play-services


    【解决方案1】:

    在最新版本的播放服务的依赖项下添加新的构建规则。例如:

    apply plugin: 'com.android.application'
        ...
    
        dependencies {
            compile 'com.google.android.gms:play-services:9.6.1'
        }
    

    【讨论】:

    • 我需要在eclipse中添加这个
    • 检查这个位置的lib /extras/google/google_play_services/libproject/google-play-services_lib/
    • 没有libproject文件夹
    • 检查 sdk-location/sdk/extras/google/m2repository/com/google/android/gms/play-services/9.6.1。谷歌似乎将库文件夹分解为单独的文件夹。从此位置找到的 aar 格式提取 jar。
    • @FebiMathew:对于大多数 AAR 工件,您不能“从 aar 格式中提取 jar”,因为这些工件中的代码会期望 AAR 中的资产、资源和清单条目存在。跨度>
    【解决方案2】:

    Google 已近一年没有支持 Eclipse。 Eclipse 的旧 ADT 插件无法进一步分发支持库(包括 Play Services)。

    要么迁移到 Android Studio,迁移到其他支持 AAR 工件的 IDE,要么不理会现有的 Play Services。

    【讨论】:

      最近更新 更多