skip to Main Content

I’m working on a flutter project in vs code, and I’m trying to run ./gradlew signingReport to get the SHA1 certificate but when I try to run that I get the following error message:

Could not compile build file ‘C:srcflutter.pub-cachehostedpub.dartlang.orgcloud_firestore-4.3.1androidbuild.gradle’.
startup failed:
General error during conversion: Unsupported class file major version 63

I’ve looked around and there seems to be some kind of problem with the way the java versions are set up, but I don’t know what or where to change.

If you need more information from me to help me solve this please tell me what can I provide, this is driving me crazy.

2

Answers


  1. Unsupported class file major version 63

    As far as I know, class file major version 63 needs java19.

    I think you have to update it.

    Login or Signup to reply.
  2. If you are on java-19 do this to solve this error:-

    Unsupported class file major version 63

    just go at your project folder and then open android/gradle/wrapper/gradle-wrapper-properties

    then change this :-

    distributionUrl=https://services.gradle.org/distributions/gradle-7.4-all.zip

    To This :-

    distributionUrl=https://services.gradle.org/distributions/gradle-7.6-all.zip

    and then your issue get solved 😁

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search