简体   繁体   English

Firebase 自助登录问题

[英]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_passwordkey_password默认为 android)。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Google firebase 首次登录时显示没有 email 选项 - Google firebase Sign-in show no email option on first sign-in Firebase 使用email登录后google登录报错:密码无效或用户没有密码 - Firebase Sign-in with email after google sign-in has error : The password is invalid or the user does not have a password Firebase 身份验证错误“给定的登录提供程序已禁用” - Firebase authentication error "The given sign-in provider is disabled" firebase auth中如何切换邮箱链接和密码登录方式? - How to switch between emailLink and password sign-in method in firebase auth? 在 API 或 gcloud 的 firebase 项目中启用登录方法 - Enable sign-in methods in firebase project from API or gcloud 使用 flutter (windows) 应用程序进行 firebase 匿名登录时出现 MissingPluginException 异常 - MissingPluginException exception when a firebase anonymous sign-in with flutter (windows) app Firebase Auth 登录在将 flutter 项目发布到 Play 商店后不起作用 - Firebase Auth Sign-in does not work after releasing flutter project to Play Store Firebase auth - 电话登录方法未呈现 IOS 的正确短信模板 - Firebase auth - Phone sign-in method not rendering correct SMS messages template for IOS 尝试为 Firebase 身份验证启用 Google 登录时出现“更新 Google 时出错”消息 - "Error updating Google" message when trying to enable Google Sign-In for Firebase Authentication 使用 Apple ID 登录 Firebase 时出现错误“invalid_request: Invalid web redirect url” - Getting error "invalid_request: Invalid web redirect url" when using Apple ID sign-in with Firebase
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM