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
As far as I know, class file major version 63 needs java19.
I think you have to update it.
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 😁