flutter doctor --android-licenses gives a java error
- Right-click on "This PC" or "My Computer" and select Properties.
- Click on Advanced system settings.
- Click on the Environment Variables button.
- Under System variables, click New.
- Enter SKIP_JDK_VERSION_CHECK as the variable name and true as the variable value.
- Click OK to close each dialog box.
- Restart your Command Prompt or PowerShell to apply the changes.
By following these steps, you can bypass the Java version check when running flutter doctor --android-licenses on Windows.