【问题标题】:The import com.google.android.gms.common.GooglePlayServicesAvailabilityException cannot be resolved导入 com.google.android.gms.common.GooglePlayServicesAvailabilityException 无法解决
【发布时间】:2014-09-04 17:56:27
【问题描述】:

所有其他导入都可以。

只有

com.google.android.gms.common.GooglePlayServicesAvailabilityException;

无法解决。

我已经导入了谷歌服务库并让我的项目引用它。

【问题讨论】:

  • 检查this。另外,如果你 google java android google import cannot be resolved,你会发现很多结果可能会有所帮助。

标签: java android


【解决方案1】:

在您的 SDK 中添加 googleplayservices 库。前往:

  1. 附加功能
  2. 谷歌

在这里您可以找到 Google Play 服务库。如果没有,则添加它。就像在 ADT(Android 开发者工具)中安装 Android 版本一样安装它。

【讨论】:

    【解决方案2】:

    他们已将其更改为

    GooglePlayServicesRepairableException

     @Nullable
    public static AdvertisingIdClient.Info getAdvertisingIdInfo(Context var0) throws IOException, IllegalStateException, GooglePlayServicesNotAvailableException, GooglePlayServicesRepairableException {
    

    滚动并检查。

    GooglePlayServicesAvailabilityException 在 play-services-auth 中可用 .但不再是了

    【讨论】:

      猜你喜欢
      • 2021-11-20
      • 2013-03-11
      • 1970-01-01
      • 2019-02-12
      • 2021-09-13
      • 2020-01-23
      • 2020-12-16
      • 2022-01-24
      • 1970-01-01
      相关资源
      最近更新 更多