Hugo M. Zuleta Hugo M. Zuleta - 1 year ago 135
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?


Answer Source

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.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download