安装 Homebrew
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
安装软件,如:brew install oclint
卸载软件,如:brew uninstall oclint
搜索软件,如:brew search oclint
更新软件,如:brew upgrade oclint
查看安装列表, 如:brew list
更新Homebrew,如:brew update
安装 android-sdk
brew cask install android-sdk
安装 android-ndk
brew cask install android-ndk
安装 Gradle
Gradle跟ant/maven一样,是一种依赖管理/自动化构建工具。但是跟ant/maven不一样,它并没有使用xml语言,而是采用了Groovy语言,这使得它更加简洁、灵活,更加强大的是,Gradle完全兼容maven和ivy。更多详细介绍可以看官网:http://www.gradle.org/
brew install gradle
检查 Gradle
gradle -v
------------------------------------------------------------
Gradle 5.6.2
------------------------------------------------------------
Build time: 2019-09-05 16:13:54 UTC
Revision: 55a5e53d855db8fc7b0e494412fc624051a8e781
Kotlin: 1.3.40
Groovy: 2.5.4
Ant: Apache Ant(TM) version 1.9.14 compiled on March 12 2019
JVM: 1.8.0_20 (Oracle Corporation 25.20-b23)
OS: Mac OS X 10.14.0 x86_64
参考:
Mac下用Homebrew安装android-sdk,android-ndk,gradle
https://www.iteye.com/blog/guibin-1999238
https://www.jianshu.com/p/3f50741893d2
网友评论