无法在Android Studio上打开本地终端(在Mac上)

6tr1vspr  于 2022-12-28  发布在  Android
关注(0)|答案(3)|浏览(289)

我无法在Android Studio上打开终端,错误信息为:

Cannot open Local Terminal Failed to start [/bin/bash, --rcfile, /Applications/Android Studio.app/Contents/plugins/terminal/jediterm-bash.in, -i] in /Users/{UserName}/Android
See your idea.log (Help | Show Log in Finder) for the details.

如果你有什么想法,请告诉我。
先谢了。

mccptt67

mccptt671#

解决方案M1 Mac(苹果硅)首先,你需要打开Android Studio预览版应用程序,并从您的码头完全关闭。并运行以下命令。

git clone https://github.com/JetBrains/pty4j.git
cd pty4j/native
clang -fPIC -c *.c
clang -shared -o libpty.dylib *.o
cp libpty.dylib "/Applications/Android Studio Preview.app/Contents/lib/pty4j-native/darwin/"
e0bqpujr

e0bqpujr2#

按Command +逗号打开android studio首选项:

单击文件夹图标并选择您喜爱的终端:

64jmpszr

64jmpszr3#

以下是在我的Mac上为我修复的问题:通过启动板打开终端。

然后单击左上角的选项卡〉终端,然后选择首选项。
在首选项中的“常规”选项卡下,将“Shell open with:”从默认登录shell更改为命令(完整路径):

退出Android工作室并重新打开它。让我知道这是否适合你。

相关问题