Flutter analyze --suggestions gives false negative

When working on a different issue I was updating agp/gradle/java to see if an update fixed my reproduced issue and I got this message.

│ Incompatible Java/Gradle versions.                                │
│ Java Version: 17.0.15, Gradle Version: 8.13

When the documentation indicates that those versions should be compatible https://docs.gradle.org/current/userguide/compatibility.html#java and the app compiles and runs successfully.

found with flutter 3.35.4.