Flutter still trying to locate and use your old JDK version (17.0.13), even though you've updated to 17.0.15.
How to fix it:
Go to preferences
Click on Build, Execution, Deployment > Build tools > Gradle
Choose the right JDK on Gradle JDK
If the correct path is not listed, you might need to ADD the JDK