[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



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

私密
私密原因:
请选择设置私密原因
  • 广告
  • 抄袭
  • 版权
  • 政治
  • 色情
  • 无意义
  • 其他
其他原因:
120
出错啦
系统繁忙,请稍后再试