When i run command:
flutter doctor --android-licenses
I recieved this message.
To resolve:
Goto rightclick(This PC)->choose Properties-> select Advanced system settings -> Advanced(tab)->Environment Variables...-> user variables->
JAVA_HOME -> edit
Remove' ; 'at end of the pointed location.Also ensure your directory is not till \bin.
Eg:JAVA_HOME should have user variable like C:\Program Files\Java\jdk1.8.0_241