[英]Firebase self sign-in issue
I am building an android based mobile application using flutter. When I want to add firebase to my app, I am facing an issue on Debug signing certificate SHA-1
.我正在使用 flutter 构建一个基于 android 的移动应用程序。当我想将 firebase 添加到我的应用程序时,我遇到了
Debug signing certificate SHA-1
的问题。 I need to enter this command keytool -list -v \-alias androiddebugkey -keystore %USERPROFILE%\.android\debug.keystore
.我需要输入此命令
keytool -list -v \-alias androiddebugkey -keystore %USERPROFILE%\.android\debug.keystore
。 When I enter this command in my vscode terminal as I am building using the IDE, I get this error message.当我使用 IDE 在我的 vscode 终端中输入此命令时,我收到此错误消息。
Error message: -alias : The term '-alias' is not recognized as the
name of a cmdlet, function, script file, or operable program. Check
the spelling of the name, or if a path was
included, verify that the path is correct, and try again.
At line:2 char:1
+ -alias androiddebugkey -keystore %USERPROFILE%\.android\debug.keystor ...
+ ~~~~~~
+ CategoryInfo : ObjectNotFound: (-alias:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
PS D:\puvan\Desktop\Food Donation App(Food2Gather)\food2gather> --help
At line:1 char:3
+ --help
+ ~
Missing expression after unary operator '--'.
At line:1 char:3
+ --help
+ ~~~~
Unexpected token 'help' in expression or statement.
+ CategoryInfo : ParserError: (:) [],
ParentContainsErrorRecordException
+ FullyQualifiedErrorId : MissingExpressionAfterOperator
I am not sure why this error message occurs and I am quite new to flutter and firebase. Still in the learning process.我不确定为什么会出现此错误消息,我对 flutter 和 firebase 还很陌生。仍在学习过程中。 Can you help to tell which part I am doing wrong and how to solve it?
能帮忙说说我哪里做错了,如何解决吗?
I'm not a Flutter programmer, but I believe that this was already asked and answered here .我不是 Flutter 程序员,但我相信这已经在这里被询问和回答了。
If it is, please remember to search in stack overflow the non-case-specific part of the error, to improve your chances of finding help, without needing to ask a question and wait for an answer.如果是,请记住在 stack overflow 中搜索错误的非特定案例部分,以提高找到帮助的机会,而无需提出问题并等待答案。 Good Luck!
祝你好运!
I don't have the ability to mark as a duplicate, but this appears to be a duplicate of this question: The term alias is not recognized我没有能力标记为重复,但这似乎是这个问题的重复: The term alias is not recognized
According to the existing Solution-marked answer, you need to run the following command in full: keytool -list -v -keystore %USERPROFILE%\.android\debug.keystore -alias androiddebugkey -storepass <store_password> -keypass <key_password>
(Where store_password
and key_password
default to android).根据现有解决方案标记的答案,您需要完整运行以下命令:
keytool -list -v -keystore %USERPROFILE%\.android\debug.keystore -alias androiddebugkey -storepass <store_password> -keypass <key_password>
(其中store_password
和key_password
默认为 android)。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.