Configure Environment Variables (Android)
brew tap caskroom/cask
Cookies-Mac-mini:~ shikuanxu$ brew tap caskroom/cask ==> Tapping caskroom/cask Cloning into '/usr/local/Homebrew/Library/Taps/caskroom/homebrew-cask'... remote: Enumerating objects: 4090, done. remote: Counting objects: 100% (4090/4090), done. remote: Compressing objects: 100% (4074/4074), done. remote: Total 4090 (delta 23), reused 673 (delta 13), pack-reused 0 Receiving objects: 100% (4090/4090), 1.31 MiB | 696.00 KiB/s, done. Resolving deltas: 100% (23/23), done. Tapped 1 command and 3988 casks (4,097 files, 4.2MB).
install android sdk
Cookies-Mac-mini:~ shikuanxu$ brew cask install android-sdk ==> Tapping homebrew/cask Cloning into '/usr/local/Homebrew/Library/Taps/homebrew/homebrew-cask'... remote: Enumerating objects: 4090, done. remote: Counting objects: 100% (4090/4090), done. remote: Compressing objects: 100% (4074/4074), done. remote: Total 4090 (delta 23), reused 673 (delta 13), pack-reused 0 Receiving objects: 100% (4090/4090), 1.31 MiB | 1.02 MiB/s, done. Resolving deltas: 100% (23/23), done. Tapped 1 command and 3988 casks (4,097 files, 4.2MB). ==> Caveats You can control android sdk packages via the sdkmanager command. You may want to add to your profile: 'export ANDROID_SDK_ROOT="/usr/local/share/android-sdk"' android-sdk requires Java 8. You can install it with brew cask install homebrew/cask-versions/java8 ==> Satisfying dependencies ==> Downloading https://dl.google.com/android/repository/sdk-tools-darwin-4333796.zip ######################################################################## 100.0% ==> Verifying SHA-256 checksum for Cask 'android-sdk'. ==> Installing Cask android-sdk ==> Linking Binary 'android' to '/usr/local/bin/android'. ==> Linking Binary 'archquery' to '/usr/local/bin/archquery'. ==> Linking Binary 'avdmanager' to '/usr/local/bin/avdmanager'. ==> Linking Binary 'jobb' to '/usr/local/bin/jobb'. ==> Linking Binary 'lint' to '/usr/local/bin/lint'. ==> Linking Binary 'monkeyrunner' to '/usr/local/bin/monkeyrunner'. ==> Linking Binary 'screenshot2' to '/usr/local/bin/screenshot2'. ==> Linking Binary 'sdkmanager' to '/usr/local/bin/sdkmanager'. ==> Linking Binary 'uiautomatorviewer' to '/usr/local/bin/uiautomatorviewer'. ==> Linking Binary 'emulator' to '/usr/local/bin/emulator'. ==> Linking Binary 'emulator-check' to '/usr/local/bin/emulator-check'. ==> Linking Binary 'mksdcard' to '/usr/local/bin/mksdcard'. ==> Linking Binary 'monitor' to '/usr/local/bin/monitor'. 🍺 android-sdk was successfully installed!
install Android Studio