在认证库中找不到GoogleSignIn类 [英] Class GoogleSignIn not found in auth library

查看:280
本文介绍了在认证库中找不到GoogleSignIn类的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在通过android应用签署Google play时遇到问题,我补充道:
编译'com.google.firebase:firebase-auth:11.4.2'

编译' com.google.android.gms:play-services-auth:11.4.2'
在我的gradle依赖项中。
我只有像GoogleSignInApi或GoogleSignInAccount这样的类,我不知道如何导入其他类。
我的意思是像GoogleSignIn或GoogleSignInClient这样的类。

解决方案

GoogleSignIn / GoogleSignInClient 是在 Google Play服务SDK版本11.6 中引入的。

旧版本的课程略有不同并且需要一个GoogleApiClient。



请从Android Studio升级到11.6并配置下面的依赖项。

 依赖项{
compile'c​​om.google.android.gms:play-services-auth:11.6.0'
}


I have got problem with signing to Google play by android app, i added: compile 'com.google.firebase:firebase-auth:11.4.2' and compile 'com.google.android.gms:play-services-auth:11.4.2' in my gradle dependencies.
I got only classes like: GoogleSignInApi or GoogleSignInAccount and i dont know how to import others.
I mean classes like GoogleSignIn or GoogleSignInClient. I just dont see them in library.

解决方案

GoogleSignIn / GoogleSignInClient were introduced in Google Play services SDK version 11.6.

Older versions have slightly different class names and require a GoogleApiClient.

Please upgrade to 11.6 from Android Studio and configure below dependency.

dependencies {
     compile 'com.google.android.gms:play-services-auth:11.6.0'
 }

这篇关于在认证库中找不到GoogleSignIn类的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆