I can't generate SHA-1 code when I run gradew signingReport

85 Views Asked by At

Am trying to generate SHA-1 to put in firebase so I can enable google sign-in in my flutter app, but when I run gradew signingReport, the terminal throws an error that

> 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

What could be the cause

2

There are 2 best solutions below

0
Shebin On

go to "android" directory in android studio in terminal

  1. cd android

  2. ./gradlew signingReport

this should work. if not try this:

gradlew signingReport

2
Mahesh Gv On

very simple just open the terminal and type the command in the terminal cd android. then run this command ./gradlew signingReport you will get SHA-1 key and others