运行gradew签名报告时无法生成SHA-1代码

问题描述 投票:0回答:2

我正在尝试生成 SHA-1 放入 firebase 中,以便我可以在我的 flutter 应用程序中启用 google 登录,但是当我运行gradew签名报告时,终端会抛出一个错误

> BUG! exception in phase 'semantic analysis' in source unit '_BuildScript_' Unsupported class file major version 65

* 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

可能是什么原因

android flutter firebase google-signin googlesigninaccount
2个回答
0
投票

转到终端中 android studio 中的“android”目录

  1. cd 安卓

  2. ./gradlew 签名报告

这应该有效。如果不试试这个:

gradlew 签名报告


0
投票

非常简单,只需打开终端并在终端中输入命令

cd android
。然后运行这个命令
./gradlew signingReport
你将获得SHA-1密钥和其他

© www.soinside.com 2019 - 2024. All rights reserved.