Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

java.io.IOException: Couldn't create PTY

Tags:

android

In android studio when I click on terminal--> '+' button new terminal does not open

enter image description here

like image 885
Ashpak Kureshi Avatar asked Dec 08 '22 13:12

Ashpak Kureshi


2 Answers

Go to File -> Settings -> Tools -> Terminal and change Shell path based on the the installed git version.

for 64bit:
"C:\Program Files\Git\bin\sh.exe" -login -i

for 32bit:
"C:\Program Files (x86)\Git\bin\sh.exe" -login -i

Don't forget the quotes around the command.

like image 128
moritzg Avatar answered Dec 11 '22 10:12

moritzg


If it doesn't work,you may set the Start directory wrong:

enter image description here

like image 20
vito liu Avatar answered Dec 11 '22 10:12

vito liu