I fixed it! You can try it: Input the Java version path that you want to run with Flutter here, and run it again. I hope it will help you.