skip to Main Content

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


  1. You can generate a SHA key using the keytool.

    Open the android folder using command:

    cd android 
    

    Run the following command to generate the SHA key:

    keytool -list -v -keystore ~/.android/debug.keystore -alias androiddebugkey -storepass android -keypass android
    

    The above command generates SHA key for debug app. If you want to generate one for a release mode then:

    keytool -list -v -keystore /PATH_TO_RELEASE_KEYSTORE -alias ALIAS_NAME -storepass KEYSTORE_PASSWORD -keypass KEYSTORE_PASSWORD
    
    Login or Signup to reply.
  2. Please use this command on your project terminal

    keytool -list -v -keystore your-release.keystore -alias your-key-alias storepass your-keystore-password -keypass your-key-password
    
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search