无法打开终端 - java.io.IOException: 无法创建 PTY" [英] Can't open terminal - java.io.IOException: Couldn't create PTY"

查看:44
本文介绍了无法打开终端 - java.io.IOException: 无法创建 PTY"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试在 android studio 中打开终端,但每次按下它时,它都会显示java.io.IOException:无法创建 PTY".如何解决这个问题?

I try to open the terminal in android studio but every time I press on it, it says " java.io.IOException: Couldn't create PTY". How to fix this?

推荐答案

我通过打开设置>工具>终端解决了这个问题,发现shell路径无效(可能是我更新了github版本导致的),所以我选择位于另一个文件夹中的另一个路径,名称为 git-cmd.exe

I solved this problem by open Settings>Tool>Terminal, I found that the shell path is invalid(Maybe this is caused by I update the github version),So I choose another path that lie in another folder which name is git-cmd.exe

这篇关于无法打开终端 - java.io.IOException: 无法创建 PTY"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆