[英]How set up gradle on Mac
Moved from Windows to MacOS (El Capitan) recently, so having troubles with compiling my project. 最近从Windows移至MacOS(El Capitan),因此在编译项目时遇到了麻烦。
sh gradlew stage
outputs: 输出:
: command not found
: command not found
: command not found
: command not found
: command not found
'radlew: line 18: syntax error near unexpected token `{
'radlew: line 18: `warn ( ) {
I have installed IntelliJ Idea IDE, installed Java, do I have make any additional setup on MacOS? 我已经安装了IntelliJ Idea IDE,已经安装了Java,是否在MacOS上进行了其他设置? My final target is deploy my project on Heroku, now I even can't compile project.. So any help would be greatly appreciated.
我的最终目标是在Heroku上部署我的项目,现在我什至无法编译项目。因此,任何帮助将不胜感激。
The Gradle Wrapper file, gradlew
, is a bash script itself. Gradle Wrapper文件
gradlew
是bash脚本本身。 You'd execute your Gradle command via ./gradlew stage
. 您可以通过
./gradlew stage
执行Gradle命令。
The gradle wrapper should work fine on OS X if you previously generated its files and checked them into your project properly. 如果先前已生成Gradle包装文件并将其检入项目,则该包装应该在OS X上正常运行。
Alternatively or even additionally, you can install the Mac version of gradle on a system-level with Homebrew : 另外,甚至可以使用Homebrew在系统级安装gradle的Mac版本:
Install Homebrew: 安装自制软件:
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
Install gradle: 安装gradle:
brew install gradle
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.