【问题标题】:com.google.android.gms.common.GooglePlayServicesUtil class not found error (again)com.google.android.gms.common.GooglePlayServicesUtil 类未找到错误(再次)
【发布时间】:2014-07-13 22:26:38
【问题描述】:

我正在尝试将 Google Cloud Messaging 与我的 Android 项目集成。到目前为止,我遵循了我找到的所有建议并安装了 Google Play 服务,然后将其作为一个项目检出,并将其作为引用项目添加到我自己的项目中。

我发现了类似的问题,但没有一个答案对我有用。我仍然收到类未找到错误。

当我在 java 代码中导入它时,它发现它很好,但是当我尝试在我的设备上运行它时,这一行会引发异常(到目前为止没有其他任何东西引用 google play lib 项目):

        int resultCode = GooglePlayServicesUtil.isGooglePlayServicesAvailable(this);

我没有想法,有什么可以帮助我的吗?谢谢

【问题讨论】:

    标签: android android-activity google-play-services


    【解决方案1】:

    我正处于完全绝望的境地,然后我尝试了最后的手段,请参阅here

    我希望它也对你有用。干杯!

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2016-04-04
      • 1970-01-01
      • 2013-09-04
      • 2019-04-29
      • 2018-05-19
      • 2018-05-27
      • 1970-01-01
      相关资源
      最近更新 更多