Your project's Gradle version is incompatible with the Java version that Flutter is using for Gradle. MAC M4 Flutter - S

There seems to be other similar questions but this one is on the new Mac M4.distributionUrl=https:s

There seems to be other similar questions but this one is on the new Mac M4.

distributionUrl=https\://services.gradle/distributions/gradle-8.1-all.zip

Ive followed through on finding a gradle that is apparently compatible with Java 23 but still getting this error

java --version 
java 23.0.1 2024-10-15
Java(TM) SE Runtime Environment (build 23.0.1+11-39)
Java HotSpot(TM) 64-Bit Server VM (build 23.0.1+11-39, mixed mode, sharing)

Your project's Gradle version is incompatible with the Java version that Flutter is using for Gradle. 

There seems to be other similar questions but this one is on the new Mac M4.

distributionUrl=https\://services.gradle./distributions/gradle-8.1-all.zip

Ive followed through on finding a gradle that is apparently compatible with Java 23 but still getting this error

java --version 
java 23.0.1 2024-10-15
Java(TM) SE Runtime Environment (build 23.0.1+11-39)
Java HotSpot(TM) 64-Bit Server VM (build 23.0.1+11-39, mixed mode, sharing)

Your project's Gradle version is incompatible with the Java version that Flutter is using for Gradle. 
Share Improve this question asked Nov 16, 2024 at 15:03 user237462user237462 4211 gold badge6 silver badges26 bronze badges
Add a comment  | 

1 Answer 1

Reset to default 0

version not mentioned in the Docs that seems to work

distributionUrl=https\://services.gradle./distributions/gradle-8.5-all.zip

I then opened the android folder of the flutter project in Android Studio and it updated gradle files and built successfully.

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745655448a4638518.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信