- mongodb - 在 MongoDB mapreduce 中,如何展平值对象?
- javascript - 对象传播与 Object.assign
- html - 输入类型 ="submit"Vs 按钮标签它们可以互换吗?
- sql - 使用 MongoDB 而不是 MS SQL Server 的优缺点
我无法使用 GoogleSignIn(com.google.android.gms.auth.api.signin.GoogleSignIn) 和 GoogleSignInClient(com.google.android.gms.auth.api.signin.GoogleSignInClient) 在 Android Studio 中实现 Google Sign In 时,我可以访问 App 中的其他类,例如
com.google.android.gms.auth.api.signin.GoogleSignInAccount;
com.google.android.gms.auth.api.signin.GoogleSignInOptions;
com.google.android.gms.common.SignInButton;
我的 build.gradle(app) 文件的精简版本如下
android {
}
dependencies {
compile 'com.google.android.gms:play-services-auth:11.4.2'
compile('com.google.api-client:google-api-client-android:1.23.0') {
exclude group: 'org.apache.httpcomponents'
}
compile('com.google.apis:google-api-services-gmail:v1-rev72-1.23.0') {
exclude group: 'org.apache.httpcomponents'
}
implementation 'com.google.gms:google-services:3.1.2'
}
apply plugin: 'com.google.gms.google-services'
而我的 build.gradle(package) 是
buildscript {
dependencies {
classpath 'com.android.tools.build:gradle:3.0.0'
classpath 'com.google.gms:google-services:3.1.2'
}
}
任何帮助将不胜感激
最佳答案
将此添加到您的应用级依赖项
compile 'com.google.android.gms:play-services-auth:12.0.1'
关于android - 无法解析 GoogleSignIn 和 GoogleSignInClient,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47224177/
我正在尝试使用 google 无提示登录,但由于某种原因未定义 GoogleSignInClient 类。当我按 alt-enter 时,它只是说“创建类”而不是导入类。感谢任何帮助,谢谢! priv
我正在尝试将我的游戏连接到 Google Play 游戏服务,但当我尝试登录时,它总是返回错误代码 8(内部错误)。 代码是从Google example:复制粘贴的 lateinit var sig
我无法使用 GoogleSignIn(com.google.android.gms.auth.api.signin.GoogleSignIn) 和 GoogleSignInClient(com.goo
我无法在实现 Google Sign 时使用 GoogleSignIn(com.google.android.gms.auth.api.signin.GoogleSignIn) 和 GoogleSig
1) 在我的HomeActivity 屏幕中会有一个用户注销按钮。此按钮导致 LoginActivity 的 signOut() 方法 @Override protected void onCrea
我需要将文本字符串与 Google 登录 Intent 一起传递,以便稍后在 onActivityResult 方法中检索它。 我使用以下代码触发 GSI 帐户选择器 Activity GoogleS
当我尝试在 Android 上静默登录时,我经常遇到以下错误。我该如何调试。这是什么原因。 (我的 Android 手机上有一个有效的 Google 帐户。) signInSilently(): fa
Google Play 服务版本 11.6.2 目标 Android SDK 27 我已通过引用 Google 在以下存储库中提供的 TypeANumber 项目实现了建议的新 GoogleSignI
除了为我的案例解决了问题(这已经是 super 膨胀了)我通常也对如何调试这种东西感兴趣(这不是我第一次遇到这种问题并且每次都解决它麻烦) 我的问题: 我希望我的用户能够在我的 Android 应用中
我是一名优秀的程序员,十分优秀!