[android studio]./studio.sh: 137: ./studio.sh: declare: not found

  • develop environment : ubuntu + android studio 2.2.0
  • $nohup ~/android-studio/bin/studio.sh &
    提示error:
    /home/xxx/android-studio/bin/studio.sh: 137: /home/xxx/android-studio/bin/studio.sh: declare: not found
    /home/xxx/android-studio/bin/studio.sh: 141: /home/xxx/android-studio/bin/studio.sh: Syntax error: "(" unexpected (expecting "fi")
  • 解决办法:
    edit studio.sh and change fist line from
    #!/bin/sh
    to
    #!/bin/bash
  • 参考
    http://stackoverflow.com/questions/37315667/android-studio-error-while-executing-studio-sh



阅读更多
个人分类: android
想对作者说点什么? 我来说一句

没有更多推荐了,返回首页

加入CSDN,享受更精准的内容推荐,与500万程序员共同成长!
关闭
关闭