Unsupported class file major version 64
Asked Answered
A

1

7

FAILURE: Build failed with an exception.

  • Where: Build file 'D:\D\FitCoachApp\fit_coach_app\android\build.gradle'

  • What went wrong: Could not compile build file 'D:\D\FitCoachApp\fit_coach_app\android\build.gradle'.

startup failed: General error during conversion: Unsupported class file major version 64

java.lang.IllegalArgumentException: Unsupported class file major version 64

[enter image description here](https://i.sstatic.net/WKYeM.png)

Alsatia answered 17/4, 2023 at 12:45 Comment(3)
distributionUrl=services.gradle.org/distributions/gradle-7.6-all.zipFluorosis
Please run flutter doctor -v in terminal and share result in your question.Aleenaleetha
I updated the kotlin version and it was solved. ThanksAlsatia
B
10

In my case I could sorted it by changing the gradle JVM. Settings... -> Build, Execution, Deployment -> Build Tools -> Gradle then downgrade the Gradle JVM. In my case I had to change from 20 to 17. After go to build.gradle and click on syncup button

Bethsaida answered 7/5, 2023 at 11:40 Comment(1)
You're a lifesaver, downgrading from 20 to 17 fixed it for me tooVelate

© 2022 - 2024 — McMap. All rights reserved.