【问题标题】:Google Play Services no lib found?Google Play Services 找不到库?
【发布时间】:2017-05-30 19:24:35
【问题描述】:

我想为我的 android 应用程序使用 Google Play 服务,以便在 https://developers.google.com/android/guides/setup 上使用 google place API 我必须找到<android-sdk>/extras/google/google_play_services/libproject/google-play-services_lib/,但我用androidSDK下载时没有找到。

我还读到我也必须下载 m2repository 但我也找不到 lib...

我在这个目录中的东西 (C:\Program Files (x86)\Android\android-sdk\extras\google\m2repository\com\google\android\gms\play-services\10.2.6) 这个文件是play-services-10.2.6.aar

有人可以解释一下我该怎么办吗? (我使用的是 netbeans 7.4)

谢谢

【问题讨论】:

  • 我按照这里的所有步骤进行操作:(“以下是步骤:1. 将 .aar 重命名为 .zip 2. 解压缩文件 3. 创建一个“libs”文件夹并移动 classes.jar 文件4. 使用 New -> Project -> Android Project from Existing Source Code 将项目导入 Eclipse 5. 转到项目的属性并设置 Build Target 和 'Is Library' 标志“)我没有类.jar 当我提取时

标签: android google-play-services google-places-api


【解决方案1】:

您可能需要查看highlights from the Google Play services 10.2 release,其中声明它不再包含对 Android 版本 2.3.x 的完全支持。

使用 SDK 版本 10.2.x 及更高版本开发的应用要求最低 Android API 级别为 14,并且不能安装在 API 级别低于 14 的设备上。

如果您还没有这样做,请尝试将其添加到您的 Android 清单文件中。

<uses-sdk
        android:minSdkVersion="14"
        android:targetSdkVersion="23" />

您可能需要查看Support Library Setup 和此SO post 了解更多信息。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2014-07-24
    • 2018-11-06
    • 1970-01-01
    • 1970-01-01
    • 2019-03-27
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多