to solve the issue, 1 download the newest PowerShell 2. go back android studio terminal, 3 inside the terminal settings go to shell path and locate where you have downloaded the newest PowerShell and select that path way and the issue is solve.