Ani Marketing
Ani Marketing

Reputation: 21

Can't open local terminal

I try to initialize my terminal in Android Studio but it gives me error. It says

Can't open local terminal. java.io.IOException: Couldn't create PTY

My computer runs on windows 10. How to fix this?

Upvotes: 2

Views: 13401

Answers (3)

Vivek Pratap Singh
Vivek Pratap Singh

Reputation: 1662

This worked for me

Please go the Settings -> Tools -> Terminal Then Change the shell path

enter image description here

Upvotes: 2

Krishna Vyas
Krishna Vyas

Reputation: 1028

This problem was occured when, you clone one android project from Github Repository..

To solve this Problem, Open Settings, Go To Tools -> Terminal

Then, In the Project Settings, change the path of Start Directory to Your SDK's path like, For My System, G:\MySoftware\Sdk\platform-tools

Upvotes: 3

lrnrzg
lrnrzg

Reputation: 71

you could run studio.exe as administrator, if the solution not work, try another solution: add a Shell path(git-bash or others) to Android Studio Settings(setting--->Tools--->Terminal--->Shell path)

Upvotes: 0

Related Questions