GoogleApiAvailability错过了firebase-messaging:9.4.0 [英] GoogleApiAvailability missed with firebase-messaging:9.4.0
本文介绍了GoogleApiAvailability错过了firebase-messaging:9.4.0的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
声明依赖关系为:
compile'com.google.firebase:firebase-messaging:9.4.0'
我在活动的导入行中得到无法解析符号GoogleApiAvailability的消息
import com.google.android.gms.common.GoogleApiAvailability;
有什么不对?
解决方案
将这一行添加到您的构建文件依赖项:
compile'com.google.android.gms:play-services-base: 9.4.0'
play-services-base
是Play Services基本客户端库,并列在 Play服务安装指南中。
Declaring dependencies as
compile 'com.google.firebase:firebase-messaging:9.4.0'
I get "can not resolve symbol GoogleApiAvailability" message in the activity's import row
import com.google.android.gms.common.GoogleApiAvailability;
What is wrong?
- not question's duplicate: Google Play Services are already on the latest version
解决方案
Add this line to your build file dependencies:
compile 'com.google.android.gms:play-services-base:9.4.0'
play-services-base
is the Play Services base client library and is listed in the Play Services Setup Guide.
这篇关于GoogleApiAvailability错过了firebase-messaging:9.4.0的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文