-
Install Java 8 (since android-sdk requires Java 8)
$ brew install --cask homebrew/cask-versions/adoptopenjdk8
-
Install Android SDK
$ brew install --cask android-sdk
-
Install gradle
$ brew install gradle
-
Set environment variables for Java and Android (add into
.bashrc
or.zshrc
for your convenience)$ export JAVA_HOME=`/usr/libexec/java_home -v 1.8` $ export ANDROID_SDK_ROOT="/usr/local/share/android-sdk"
-
Clone the repo
$ git clone [email protected]:SongQA/study-kotlin.git $ cd study-kotlin
-
Clean
$ ./gradlew clean
-
Build
$ ./gradlew :app:assembleRelease