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

标签 android android-studio terminal

我无法在 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.

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

提前致谢。

最佳答案

M1 Mac (Apple silicon) 解决方案 首先,您需要打开 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/"

关于android - 无法在 Android Studio 上打开本地终端(在 Mac 上),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/63464304/

相关文章:

android - 调用BluetoothAdapter.getDefaultAdapter时出现SecurityException

java - RadioGroup 问题

android - 如何在 Android Studio 中显示 "select Android SDK"?

java - 尽管添加了 android :usesCleartextTraffic and android:networkSecurityConfig,但仍不允许明文 HTTP 流量

python - python脚本中的os.system命令导致错误

java - 如何从终端使用 jar 和 txt 文件编译和运行 Java

linux - 安装/升级到 python 3.4.3 时出错

Android Studio "Resource"窗口

android - listview isEnabled() 调用了两次

android - Android Studio ExceptionInitializeError Login v2.3 中的 Facebook SDK 4