Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/meteor/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Android 无法获取颤振应用程序的SHA-1密钥_Android_Flutter_Key_Sha1 - Fatal编程技术网

Android 无法获取颤振应用程序的SHA-1密钥

Android 无法获取颤振应用程序的SHA-1密钥,android,flutter,key,sha1,Android,Flutter,Key,Sha1,我正在开发一个Flitter应用程序,希望使用google登录,为此,我需要我的应用程序SHA-1密钥 解释了如何获得钥匙 但是当我运行命令/gradlew signingReport 我得到一个错误:- Starting a Gradle Daemon, 2 stopped Daemons could not be reused, use --status for details FAILURE: Build failed with an exception. *

我正在开发一个Flitter应用程序,希望使用google登录,为此,我需要我的应用程序SHA-1密钥

解释了如何获得钥匙

但是当我运行命令
/gradlew signingReport

我得到一个错误:-

    Starting a Gradle Daemon, 2 stopped Daemons could not be reused, use --status for details

    FAILURE: Build failed with an exception.

    * What went wrong:
    Unable to start the daemon process.
    This problem might be caused by incorrect configuration of the daemon.
    For example, an unrecognized jvm option is used.
    Please refer to the User Manual chapter on the daemon at https://docs.gradle.org/5.6.2/userguide/gradle_daemon.html
    Process command line: C:\Program Files (x86)\Java\jre1.8.0_241\bin\java.exe -Xmx1536M -Dfile.encoding=windows-1252 -Duser.country=US -Duser.language=en -Duser.variant -cp E:\Users\rasku\.gradle\wrapper\dists\gradle-5.6.2-all\9st6wgf78h16so49nn74lgtbb\gradle-5.6.2\lib\gradle-launcher-5.6.2.jar org.gradle.launcher.daemon.bootstrap.GradleDaemon 5.6.2
    Please read the following process output to find out more:
    -----------------------
    Error occurred during initialization of VM
    Could not reserve enough space for 1572864KB object heap


    * Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

    * Get more help at https://help.gradle.org

我是新的应用程序签名和谷歌登录。问题是什么?如何获取应用程序的SHA-1密钥?

获取调试证书指纹:

对于Linux/mac,打开终端并运行

keytool -list -v \
-alias androiddebugkey -keystore ~/.android/debug.keystore
窗户

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

参考

在firebase帐户中添加SHA-1密钥如何查找SHA-1密钥?这肯定会工作参考此链接