Hugo M. Zuleta Hugo M. Zuleta - 5 months ago 49
Android Question

Android Studio terminal with custom working directory

I'm trying to set the default working directory for the Android Studio "Terminal" tab, but changing the default shell path in the settings to

cmd.exe /k "cd /d c:\android\sdk"
doesn't work: I get the error "Can't Open Local Terminal, couldn't create PTY".

Is it possible to change the Terminal's default working directory within Android Studio?



Try to wrap cmd.exe to ":

"cmd.exe" /k "cd /d c:\android\sdk"

For more info check this thread of comments where they took about the same issue.