What went wrong:
Execution failed for task ':gradle:compileGroovy'.
> BUG! exception in phase 'semantic analysis' in source unit 'E:FluterNew folderflutterpackagesflutter_toolsgradlesrcmaingroovyapp_plugin_loader.groovy' Unsupported class file major version 64
* 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.
I tried the commands:
cd android
To open my android folder of my flutter app. Then I enter another command:
./gradlew app:signingReport
But I’m facing the error:
Execution failed for task ':gradle:compileGroovy'.
> BUG! exception in phase 'semantic analysis' in source unit 'E:FluterNew folderflutterpackagesflutter_toolsgradlesrcmaingroovyapp_plugin_loader.groovy' Unsupported class file major version 64
* 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."
How can I solve it?
2
Answers
You can generate a SHA key using the keytool.
Open the android folder using command:
Run the following command to generate the SHA key:
The above command generates SHA key for debug app. If you want to generate one for a release mode then:
Please use this command on your project terminal