我该如何“通过Google认证您的客户"? [英] How do I do "Authenticating Your Client with Google"?

查看:126
本文介绍了我该如何“通过Google认证您的客户"?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何使用Google正确验证您的客户? 我正在关注本教程 https://developers.google.com/android/guides/client-auth

How do I Authenticating Your Client correctly with google? I'm following this tutorial https://developers.google.com/android/guides/client-auth

我将此文本复制到命令提示符-

I copy this text into my command prompt -

keytool -exportcert -list -v \ -alias androiddebugkey -keystore%USERPROFILE%.android \ debug.keystore

keytool -exportcert -list -v \ -alias androiddebugkey -keystore %USERPROFILE%.android\debug.keystore

我得到此消息:-别名未被识别为内部或外部命令,可操作程序或批处理文件."

I get this message back "-alias is not recognized as an internal or external command, operable program or batch file."

怎么了?

推荐答案

复制的命令不应在-v之后包含反斜杠,并且必须放在一行中,如下所示:

The copied command shouldn't contain the backslash after -v and it must be placed in one single line, like this:

keytool -exportcert -list -v -alias androiddebugkey -keystore %USERPROFILE%\.android\debug.keystore

此外,您还必须将命令中的%USERPROFILE%位置更改为.android目录所在的路径. (也许它在这里:C:\ User \ YourUserName \,但是您必须检查它是否存在)

Besides you have to change the %USERPROFILE% location in the command to the path where the .android directory located. (Maybe it is here: C:\User\YourUserName\ , but you have to check it if it's there)

这篇关于我该如何“通过Google认证您的客户"?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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