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

Khi*_*Soe 2 terminal android android-studio

我无法在 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.
Run Code Online (Sandbox Code Playgroud)

如果您有任何想法,请告诉我。

提前致谢。

小智 6

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

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/"
Run Code Online (Sandbox Code Playgroud)