This fixes various oddities of Win10 / Android studio terminals:
In windows
RUN is the old DOS console, i.e. command line - cmd.exe
[eg. press win + r , then type cmd.exe ]
Right Click Logo (upper left corner)
Click Properties
Click "Options"
Mark Use Legacy Console
Click OK
In Android Studio
Closing and reopening a terminal session
Finally
If you still have problems, just use the Windows command line instead! OR
check this answer
source share