已解决M1 Android studio Cannot open Local Terminal
Posted up up!
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了已解决M1 Android studio Cannot open Local Terminal相关的知识,希望对你有一定的参考价值。
M1芯片的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.
解决方法:
运行以下命令:
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/"
以上是关于已解决M1 Android studio Cannot open Local Terminal的主要内容,如果未能解决你的问题,请参考以下文章