我正在尝试生成 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 studio 中的“android”目录
cd 安卓
./gradlew 签名报告
这应该有效。如果不试试这个:
gradlew 签名报告
非常简单,只需打开终端并在终端中输入命令
cd android
。然后运行这个命令./gradlew signingReport
你将获得SHA-1密钥和其他