我正在开发一个 flutter 应用程序,并希望使用 google 登录,为此,我需要我的应用程序 SHA-1 key 。
解释如何获取 key here
但是当我运行命令./gradlewsigningReport
我收到错误:-
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
我是应用程序签名和 Google 登录的新手。有什么问题以及如何获取应用程序的 SHA-1 key ?
最佳答案
获取调试证书指纹:
对于 Linux/mac 打开终端并运行
keytool -list -v \
-alias androiddebugkey -keystore ~/.android/debug.keystore
适用于 Windows
keytool -list -v \
-alias androiddebugkey -keystore %USERPROFILE%\.android\debug.keystore
引用link
关于android - 无法获取 flutter 应用程序的 SHA-1 key ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/63635299/