result.issuccess()的结果是:false。
完成的功能是:
@Override
public void onActivityResult(int requestCode, int resultCode, Intent data) {
super.onActivityResult(requestCode, resultCode, data);
// Result returned from launching the Intent from GoogleSignInApi.getSignInIntent(...);
Log.d("DEIP","request code = 9001? ="+requestCode);
if (requestCode == RC_SIGN_IN) {
GoogleSignInResult result = Auth.GoogleSignInApi.getSignInResultFromIntent(data);
Log.d(TAG," isSucess? result.toString ="+result.toString());
Log.d(TAG," +result.isSuccess() ="+result.isSuccess());
if (result.isSuccess()) {
// Google Sign In was successful, authenticate with Firebase
GoogleSignInAccount account = result.getSignInAccount();
firebaseAuthWithGoogle(account);
} else {
// Google Sign In failed
Log.e(TAG, "Google Sign In failed.");
Log.d(TAG,"Failed into onActivityResult");
}
}
}
失败时的结果是:
>
RE生成SHA1指纹图谱。-Firebase给我的信息是我的sh1指纹是256指纹。我还生成了释放密钥和调试密钥。
我将新文件google-services.json放入Android Studio的应用程序目录中。
我试图在物理手机上运行该应用程序,但错误与在虚拟手机上运行相同。
将包名比较到文件Androidmanifes.xml中,并将此字段比较到Firebase控制台中。
清理项目,重建。
禁用即时运行
我将依赖项(9.8.0)的新值放入compile'com.google.firebase:firebase-auth:9.8.0'
依赖关系{compile fileTree(dir:'libs',include:['*.jar'])testCompile'JUnit:JUnit:4.12'
compile 'com.android.support:design:24.0.0'
compile 'com.github.bumptech.glide:glide:3.6.1'
compile 'de.hdodenhof:circleimageview:1.3.0'
compile 'com.android.support:appcompat-v7:24.0.0'
// Google
compile 'com.google.android.gms:play-services-auth:9.8.0'
// Firebase
compile 'com.google.firebase:firebase-database:9.8.0'
compile 'com.google.firebase:firebase-auth:9.8.0'
compile 'com.google.firebase:firebase-config:9.8.0'
compile 'com.google.android.gms:play-services-appinvite:9.8.0'
compile 'com.google.firebase:firebase-messaging:9.8.0'
compile 'com.google.android.gms:play-services-ads:9.8.0'
compile 'com.google.firebase:firebase-crash:9.8.0'
compile 'com.google.firebase:firebase-analytics:9.8.0'
// Firebase UI
compile 'com.firebaseui:firebase-ui-database:0.4.0'
// Testing dependencies
androidTestCompile 'junit:junit:4.12'
androidTestCompile 'com.android.support.test.espresso:espresso-core:2.2.2'
androidTestCompile 'com.android.support.test:runner:0.5'
androidTestCompile 'com.android.support:support-annotations:24.0.0'
compile 'com.android.support.constraint:constraint-layout:1.0.0-beta3'
//tryning to make COntrainlayout work
//compile 'android.support.constraint.ConstraintLayout'
//
compile 'com.google.firebase:firebase-core:9.8.0'
}
应用插件:'com.google.gms.google-services'应用插件:'com.android.application'
错误是我创建指纹的方式。命令
keytool -exportcert -list -v \
-alias androiddebugkey -keystore ~/.android/debug.keystore
对我不起作用。创建调试指纹的方法是:“基本上,在Android Studio中,打开最右边的Gradle菜单,打开Android-从下拉菜单开始(如果没有显示,则刷新),打开任务,打开Android,双击SigningReport。如以下链接所示:https://github.com/firebase/friendlychat/issues/11”
所以我被这个令人沮丧的问题困住了。我对Firebase上的Google身份验证还很陌生,但我已经做了Firebase文档中关于如何集成Google登录身份验证的所有说明,然而我仍然在控制台中收到这个奇怪的错误,包括两个部分: 而且还 在有人试图指出以前就堆栈溢出提出的类似问题之前,以下是我在看到所有可用的解决方案之后所做的,但non已经解决了该错误 我有我的项目的SHA1指纹 我有我的OAUTH2
我的用户在下载我的应用程序后无法使用google sign in登录。起初我认为是sha1的问题,所以我用keytool和我的keystore创建了一个。 我做了什么: 将sha1复制到我的Firebase项目设置 下载了googlejson文件,放在我的项目中。 使用相同的密钥库生成签名的apk。 目前,我想我的Firebase项目设置,调试和发布版本中列出了两个sha1指纹证书。奇怪的是我可以
问题内容: 我无法摆脱这个错误。我已经通过SSMS添加了“ NT AUTHORITY \ NETWORK”用户以及使用此线程作为参考的相关角色:用户“ NT AUTHORITY \ NETWORKSERVICE”的登录失败 我试图通过Windows服务建立数据库连接。在调试模式下,数据库连接可以正常工作。当我实际尝试运行已安装的服务时,便会出现此错误。 这是我来自app.config的连接字符串:
一、检查服务器是否填写了DNS,即服务器是否能上网访问www.phpcms.cn。有部分用户是本机通信失败,检查C:\WINDOWS\system32\drivers\etc\hosts文件,如果用的是localhost域名访问,本机是否绑定了127.0.0.1 localhost 二、检查phpsso的访问地址是否正确,然后查看设置->phpsso设置中的应用id、接口地址、加密密钥、版本号和
所以阅读Sybase的实用手册,我发现我可以设置我的 localhost服务器使用dsedit.exe.。 然后我尝试在Aqua Data Studio中注册我的localhost服务器,方法如下: 但是我得到了以下错误: 管理员用户名是什么 我在哪里/如何设置它?? 根据文档,它说默认的系统管理员ID是“sa”,没有密码。。 (http://infocenter.sybase.com/archi
我知道很多人都问过类似的问题,但我想知道如何使用python登录gmail(或google帐户)。我已经有了一个代码(见下文),可以使用selenium将用户登录到gmail。然而,我注意到了一些问题。 程序停止/关闭时浏览器关闭。 它无法检测到失败的登录。 这两个问题都需要解决,我才能完成我的项目。我不介意使用像pyautogui这样的selenium以外的东西来打开google。但是,它需要能