最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

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

programmeradmin9浏览0评论

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.

与本文相关的文章

发布评论

评论列表(0)

  1. 暂无评论