有没有其他方法从Android Studio生成SHA1密钥?

huangapple go评论75阅读模式
英文:

Is there any other way to generate SHA1 key from android studio?

问题

我正在尝试在Android Studio中运行Flutter项目。我下载了项目并尝试获取Firebase的SHA1密钥。我是如何做到的 - 在android文件夹中 - 在终端中打开gradlew - 运行.\gradlew signingReport。我得到了错误 = 错误:缺少密钥库。

这是代码部分:

PS C:\Users\DELL\Desktop\Apps\News v3.0.5\App_Flutter_Code-3.0.5\android> .\gradlew signingReport
Starting a Gradle Daemon, 2 incompatible and 2 stopped Daemons could not be reused, use --status for details

> Task :app:signingReport
Variant: debug
Config: debug
Store: C:\Users\DELL\.android\debug.keystore
Alias: AndroidDebugKey
Error: Missing keystore
----------
Variant: release
Config: debug
Store: C:\Users\DELL\.android\debug.keystore
Alias: AndroidDebugKey
Error: Missing keystore
----------
Variant: profile
Config: debug
Store: C:\Users\DELL\.android\debug.keystore
Alias: AndroidDebugKey
Error: Missing keystore
----------
...(省略部分输出)
33 actionable tasks: 33 executed
<------------->
0% WAITING
> IDLE
PS C:\Users\DELL\Desktop\Apps\News v3.0.5\App_Flutter_Code-3.0.5\android>

在这里我该如何获取SHA1密钥?

我尝试了.\gradlew signingReport。但它给我一个缺少密钥库的错误。

英文:

I am trying to run flutter project in Android Studio. I download the project and trying to get SHA 1 key for Firebase. How did I done that--> In android forlder --> open gradlew in Terminal --> run .\gradlew signingReport. I am getting error = Error: Missing keystore.

Here is the code

PS C:\Users\DELL\Desktop\Apps\News v3.0.5\App_Flutter_Code-3.0.5\android&gt; .\gradlew signingReport
Starting a Gradle Daemon, 2 incompatible and 2 stopped Daemons could not be reused, use --status for details

&gt; Task :app:signingReport
Variant: debug
Config: debug
Store: C:\Users\DELL\.android\debug.keystore
Alias: AndroidDebugKey
Error: Missing keystore
----------
Variant: release
Config: debug
Store: C:\Users\DELL\.android\debug.keystore
Alias: AndroidDebugKey
Error: Missing keystore
----------
Variant: profile
Config: debug
Store: C:\Users\DELL\.android\debug.keystore
Alias: AndroidDebugKey
Error: Missing keystore
----------
Variant: debugAndroidTest
Config: debug
Store: C:\Users\DELL\.android\debug.keystore
Alias: AndroidDebugKey
Error: Missing keystore
----------

&gt; Task :audio_session:signingReport
Variant: debugAndroidTest
Config: debug
Store: C:\Users\DELL\.android\debug.keystore
Alias: AndroidDebugKey
Error: Missing keystore
----------

&gt; Task :connectivity_plus:signingReport
Variant: debugAndroidTest
Config: debug
Store: C:\Users\DELL\.android\debug.keystore
Alias: AndroidDebugKey
Error: Missing keystore
----------

&gt; Task :device_info_plus:signingReport
Variant: debugAndroidTest
Config: debug
Store: C:\Users\DELL\.android\debug.keystore
Alias: AndroidDebugKey
Error: Missing keystore
----------

&gt; Task :facebook_audience_network:signingReport
Variant: debugAndroidTest
Config: debug
Store: C:\Users\DELL\.android\debug.keystore
Alias: AndroidDebugKey
Error: Missing keystore
----------

&gt; Task :file_picker:signingReport
Variant: debugAndroidTest
Config: debug
Store: C:\Users\DELL\.android\debug.keystore
Alias: AndroidDebugKey
Error: Missing keystore
----------

&gt; Task :firebase_auth:signingReport
Variant: debugAndroidTest
Config: debug
Store: C:\Users\DELL\.android\debug.keystore
Alias: AndroidDebugKey
Error: Missing keystore
----------

&gt; Task :firebase_core:signingReport
Variant: debugAndroidTest
Config: debug
Store: C:\Users\DELL\.android\debug.keystore
Alias: AndroidDebugKey
Error: Missing keystore
----------

&gt; Task :firebase_dynamic_links:signingReport
Variant: debugAndroidTest
Config: debug
Store: C:\Users\DELL\.android\debug.keystore
Alias: AndroidDebugKey
Error: Missing keystore
----------

&gt; Task :firebase_messaging:signingReport
Variant: debugAndroidTest
Config: debug
Store: C:\Users\DELL\.android\debug.keystore
Alias: AndroidDebugKey
Error: Missing keystore
----------

&gt; Task :flutter_inappwebview:signingReport
Variant: debugAndroidTest
Config: debug
Store: C:\Users\DELL\.android\debug.keystore
Alias: AndroidDebugKey
Error: Missing keystore
----------

&gt; Task :flutter_keyboard_visibility:signingReport
Variant: debugAndroidTest
Config: debug
Store: C:\Users\DELL\.android\debug.keystore
Alias: AndroidDebugKey
Error: Missing keystore
----------

&gt; Task :flutter_local_notifications:signingReport
Variant: debugAndroidTest
Config: debug
Store: C:\Users\DELL\.android\debug.keystore
Alias: AndroidDebugKey
Error: Missing keystore
----------

&gt; Task :flutter_login_facebook:signingReport
Variant: debugAndroidTest
Config: debug
Store: C:\Users\DELL\.android\debug.keystore
Alias: AndroidDebugKey
Error: Missing keystore
----------

&gt; Task :flutter_plugin_android_lifecycle:signingReport
Variant: debugAndroidTest
Config: debug
Store: C:\Users\DELL\.android\debug.keystore
Alias: AndroidDebugKey
Error: Missing keystore
----------

&gt; Task :flutter_tts:signingReport
Variant: debugAndroidTest
Config: debug
Store: C:\Users\DELL\.android\debug.keystore
Alias: AndroidDebugKey
Error: Missing keystore
----------

&gt; Task :google_mobile_ads:signingReport
Variant: debugAndroidTest
Config: debug
Store: C:\Users\DELL\.android\debug.keystore
Alias: AndroidDebugKey
Error: Missing keystore
----------

&gt; Task :google_sign_in_android:signingReport
Variant: debugAndroidTest
Config: debug
Store: C:\Users\DELL\.android\debug.keystore
Alias: AndroidDebugKey
Error: Missing keystore
----------

&gt; Task :image_picker_android:signingReport
Variant: debugAndroidTest
Config: debug
Store: C:\Users\DELL\.android\debug.keystore
Alias: AndroidDebugKey
Error: Missing keystore
----------

&gt; Task :in_app_review:signingReport
Variant: debugAndroidTest
Config: debug
Store: C:\Users\DELL\.android\debug.keystore
Alias: AndroidDebugKey
Error: Missing keystore
----------

&gt; Task :just_audio:signingReport
Variant: debugAndroidTest
Config: debug
Store: C:\Users\DELL\.android\debug.keystore
Alias: AndroidDebugKey
Error: Missing keystore
----------

&gt; Task :location:signingReport
Variant: debugAndroidTest
Config: debug
Store: C:\Users\DELL\.android\debug.keystore
Alias: AndroidDebugKey
Error: Missing keystore
----------

&gt; Task :path_provider_android:signingReport
Variant: debugAndroidTest
Config: debug
Store: C:\Users\DELL\.android\debug.keystore
Alias: AndroidDebugKey
Error: Missing keystore
----------

&gt; Task :permission_handler_android:signingReport
Variant: debugAndroidTest
Config: debug
Store: C:\Users\DELL\.android\debug.keystore
Alias: AndroidDebugKey
Error: Missing keystore
----------

&gt; Task :share_plus:signingReport
Variant: debugAndroidTest
Config: debug
Store: C:\Users\DELL\.android\debug.keystore
Alias: AndroidDebugKey
Error: Missing keystore
----------

&gt; Task :sign_in_with_apple:signingReport
Variant: debugAndroidTest
Config: debug
Store: C:\Users\DELL\.android\debug.keystore
Alias: AndroidDebugKey
Error: Missing keystore
----------

&gt; Task :sms_autofill:signingReport
Variant: debugAndroidTest
Config: debug
Store: C:\Users\DELL\.android\debug.keystore
Alias: AndroidDebugKey
Error: Missing keystore
----------

&gt; Task :sqflite:signingReport
Variant: debugAndroidTest
Config: debug
Store: C:\Users\DELL\.android\debug.keystore
Alias: AndroidDebugKey
Error: Missing keystore
----------

&gt; Task :unity_ads_plugin:signingReport
Variant: debugAndroidTest
Config: debug
Store: C:\Users\DELL\.android\debug.keystore
Alias: AndroidDebugKey
Error: Missing keystore
----------

&gt; Task :url_launcher_android:signingReport
Variant: debugAndroidTest
Config: debug
Store: C:\Users\DELL\.android\debug.keystore
Alias: AndroidDebugKey
Error: Missing keystore
----------

&gt; Task :video_player_android:signingReport
Variant: debugAndroidTest
Config: debug
Store: C:\Users\DELL\.android\debug.keystore
Alias: AndroidDebugKey
Error: Missing keystore
----------

&gt; Task :wakelock:signingReport
Variant: debugAndroidTest
Config: debug
Store: C:\Users\DELL\.android\debug.keystore
Alias: AndroidDebugKey
Error: Missing keystore
----------

&gt; Task :webview_flutter_android:signingReport
Variant: debugAndroidTest
Config: debug
Store: C:\Users\DELL\.android\debug.keystore
Alias: AndroidDebugKey
Error: Missing keystore
33 actionable tasks: 33 executed
&lt;-------------&gt; 0% WAITING
&gt; IDLE
PS C:\Users\DELL\Desktop\Apps\News v3.0.5\App_Flutter_Code-3.0.5\android&gt;

How dp I get SHA 1 key here?

I tried .\gradlew signingReport. But it gives me missing keystore error.

答案1

得分: 1

在终端中打开 Android 目录,然后尝试运行 ./gradlew signingReport 命令。

英文:

open android directory in to the terminal then try ./gradlew signingReport command.

huangapple
  • 本文由 发表于 2023年5月28日 16:43:10
  • 转载请务必保留本文链接:https://go.coder-hub.com/76350639.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定