flutter / flutter

Flutter makes it easy and fast to build beautiful apps for mobile and beyond
https://flutter.dev
BSD 3-Clause "New" or "Revised" License
165.45k stars 27.31k forks source link

Conflicting issues with Mac Os Sequoia 15 and Xcode 16 #156236

Open tedkhieu opened 1 week ago

tedkhieu commented 1 week ago

Steps to reproduce

  1. upgraded mac os to Sequoia 15.
  2. upgraded Xcode to Xcode 16
  3. when run command 'flutter run' I got error message
  4. when run command 'code .' it is run fine with vs code for android but not ios device
  5. i can not downgrade to Xcode 15 because Sequoia does not support

Actual results

The configured version of Java detected may conflict with the Gradle version in your new Flutter app.
[RECOMMENDED] If so, to keep the default Gradle version 8.3, make
sure to download a compatible Java version
(Java 17 <= compatible Java version < Java 21).
You may configure this compatible Java version by running:
`flutter config --jdk-dir=<JDK_DIRECTORY>`
Note that this is a global configuration for Flutter.
Alternatively, to continue using your configured Java version, update the Gradle
version specified in the following file to a compatible Gradle version
(compatible Gradle version range: 8.4 - 8.7):
/Users/tedkhieu/Desktop/flutter_p2024/coffee_card/android/gradle/wrapper/gradle-
wrapper.propertiesYou may also update the Gradle version used by running
`./gradlew wrapper --gradle-version=<COMPATIBLE_GRADLE_VERSION>`

Logs

The configured version of Java detected may conflict with the Gradle version in your new Flutter app.
[RECOMMENDED] If so, to keep the default Gradle version 8.3, make
sure to download a compatible Java version
(Java 17 <= compatible Java version < Java 21).
You may configure this compatible Java version by running:
`flutter config --jdk-dir=<JDK_DIRECTORY>`
Note that this is a global configuration for Flutter.
Alternatively, to continue using your configured Java version, update the Gradle
version specified in the following file to a compatible Gradle version
(compatible Gradle version range: 8.4 - 8.7):
/Users/tedkhieu/Desktop/flutter_p2024/coffee_card/android/gradle/wrapper/gradle-
wrapper.propertiesYou may also update the Gradle version used by running
`./gradlew wrapper --gradle-version=<COMPATIBLE_GRADLE_VERSION>`

Flutter Doctor output

flutter doctor is all good with green check

darshankawar commented 1 week ago

@tedkhieu Can you elaborate when you say conflicting issues ? Also, based on the log you are getting, did you follow the message in it to see if that helps to resolve it ?