After attending Google IO 2016 extended, I downloaded studio from https://dl.google.com/dl/android/studio/ide-zips/2.2.0.0/android-studio-ide-145.2878421-linux.zip
I extracted it. But after that, I am not able to execute studio.sh..
It shows following error:
To-be-filled-by-O-E-M:~/Applications/android-studio/bin$ ./studio.sh
./studio.sh: 137: ./studio.sh: declare: not found
./studio.sh: 141: ./studio.sh: Syntax error: "(" unexpected (expecting "fi")
Am I missing something ?
Note: I have posted the issue on Google Plus Community Android Studio . Hers's the Link to my post
If you are ubuntu user then you can edit studio.sh and change fist line from
#!/bin/sh
to
#!/bin/bash
It works for me in Ubuntu 14.04.
只需使用以前的studio.sh文件,它就像一个魅力!
Edit the file ~/android-studio/bin/studio.sh
:
change line 1
#!/bin/sh
to
#!/bin/bash
我也得到了同样的错误,我已经更换了最新的/bin/studio.sh文件与我以前/bin/studio.sh文件和它的作品般的魅力。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.