admin管理员组

文章数量:1026912

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.

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.

本文标签: