Skip to content

Instantly share code, notes, and snippets.

@kamlekar
Last active December 30, 2017 04:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kamlekar/5c76d12f8e50fe3b3e7743b9679c3edf to your computer and use it in GitHub Desktop.
Save kamlekar/5c76d12f8e50fe3b3e7743b9679c3edf to your computer and use it in GitHub Desktop.
Nativescript setup

Android SDK Path:

  • Open Android Studio
  • File -> Settings... -> Appearance & Behavior -> System Settings -> Android SDK
  • You should be able to see a field "Android SDK Location"

Environment variables to set:

set ANDROID_HOME= {location taken from top Android SDK path}

set PATH=%PATH%;%ANDROID_HOME%\tools;%ANDROID_HOME%\platform-tools

JAVA_HOME=C:\Program Files\Java\jdk1.8.0_66

Sometimes, even though set everything correctly, we need to make sure following things:

  • Computer name should not have space in between

Also, you might not face issues only when run the CLI as administrator.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment