Android SDK only Setup (Not the Studio) - onlinepractice/react-native GitHub Wiki

Download the sdk from this location based on your operating system. Windows: https://dl.google.com/android/repository/sdk-tools-windows-3859397.zip Mac: https://dl.google.com/android/repository/sdk-tools-darwin-3859397.zip Linux: https://dl.google.com/android/repository/sdk-tools-linux-3859397.zip the complete list of studio and the sdk tools are here: https://developer.android.com/studio/index.html#downloads

for Mac and Linux users: go to /usr/local create folder called android, give permission 755 go insider the folder, copy the downloaded zip file and expand it. rename it to sdk

Next step is to install platform-tools https://developer.android.com/studio/command-line/sdkmanager.html go to /usr/local/Android/sdk/tools/bin run this command ./sdkmanager "platform-tools" "platforms;android-26"

The reason I had to install separately so that the entire team can reuse the configuration. These are the places to configure the sdk tool:

  1. Android Studio go to tools-> android->SDK manager-> Android SDK Location and Edit the value and point it to /usr/local/android/sdk once pinted, click on next and follow other steps.
  2. export ANDROID_PATH=/usr/local/android/sdk (change this in environment.sh file)
  3. sdk-dir=$ANDROID_PATH in local.properties