Skip to content

Instantly share code, notes, and snippets.

@maatthc
Created May 14, 2018 06:44
Show Gist options
  • Save maatthc/c430e9af660ef082bf1b41974b7c1abe to your computer and use it in GitHub Desktop.
Save maatthc/c430e9af660ef082bf1b41974b7c1abe to your computer and use it in GitHub Desktop.
How to integrate Android Studio without SDK to NativeScript without sudo
# Download the "Android Studio" (version 3.2.1 as today) from
# https://developer.android.com/studio/#downloads
# Extract and move to the Desktop
# Download the "Command line tools only" from the same page
# Extrat to ~/Downloads and then:
cd ~/Desktop/Android\ Studio.app/
mv ~/Downloads/tools ./
# Download the "SDK Platform Tools" from
# https://developer.android.com/studio/releases/platform-tools
# Extrat to ~/Downloads and then:
cd ~/Desktop/Android\ Studio.app/
mv ~/Downloads/platform-tools ./
export ANDROID_HOME=~/Desktop/Android\ Studio.app
export PATH=$PATH:$ANDROID_HOME/tools
export PATH=$PATH:$ANDROID_HOME/tools/bin
export PATH=$PATH:$ANDROID_HOME/platform-tools
export JAVA_HOME=$ANDROID_HOME/Contents/jre/jdk/Contents/Home
export PATH=$PATH:$JAVA_HOME/bin
sdkmanager "platforms;android-26"
sdkmanager "build-tools;27.0.3"
sdkmanager "extras;android;m2repository"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment