Home > database >  Problem running ./gradlew signingReport on vs code
Problem running ./gradlew signingReport on vs code

Time:01-26

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:\src\flutter.pub-cache\hosted\pub.dartlang.org\cloud_firestore-4.3.1\android\build.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.

CodePudding user response:

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.

CodePudding user response:

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

  • Related