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
1 Answer
Reset to default 0version 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条)