如何检查Play服务是否与Firebase一起安装? [英] How to check if Play Service is installed with Firebase?
本文介绍了如何检查Play服务是否与Firebase一起安装?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我知道如何用GoogleApiAvailability(通过GCM)来检查它。但是这个函数不支持FireBase核心库。
我的依赖是:
$ $ $ $ $ code> compile'com.android.support:appcompat-v7:24.2.1'
compile'com.android.support:design:24.2.1'
compile'com.mcxiaoke.volley: library-aar:1.0.0'
compile'com.android.support:recyclerview-v7:24.2.1'
compile'com.google.firebase:firebase-core:9.6.1'
compile'com.google.firebase:firebase-messaging:9.6.1'
compile'com.android.support:support-v4:24.2.1'
解决方案
我相信你要找的是这样的:
compile'com.google.android.gms:play-services-auth:9.6.1'
I know how to check it with GoogleApiAvailability (by GCM). But this function is not supported be FireBase core library.
my dependencies are:
compile 'com.android.support:appcompat-v7:24.2.1'
compile 'com.android.support:design:24.2.1'
compile 'com.mcxiaoke.volley:library-aar:1.0.0'
compile 'com.android.support:recyclerview-v7:24.2.1'
compile 'com.google.firebase:firebase-core:9.6.1'
compile 'com.google.firebase:firebase-messaging:9.6.1'
compile 'com.android.support:support-v4:24.2.1'
解决方案
I believe what you're looking for is this:
compile 'com.google.android.gms:play-services-auth:9.6.1'
这篇关于如何检查Play服务是否与Firebase一起安装?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文