Khin
Khin

Reputation: 21

Cannot open local terminal on Android Studio (on Mac)

I cannot open the terminal on Android Studio and the error says:

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.

If you have any idea, please let me know.

Thanks in advance.

Upvotes: 2

Views: 3053

Answers (2)

manmeet singh
manmeet singh

Reputation: 86

Solution for M1 Mac (Apple silicon) First of all you need to Open the Android Studio Preview app and close completely from you docks. and run the following commands.

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/"

Upvotes: 6

navylover
navylover

Reputation: 13539

Press Command + Comma to open android studio preference: enter image description here

Click the folder icon and select your favorite terminal: enter image description here

Upvotes: 3

Related Questions