Reputation: 21
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
Reputation: 1662
This worked for me
Please go the Settings -> Tools -> Terminal Then Change the shell path
Upvotes: 2
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
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