Set environment variables $ANDROID_HOME and $ANDROID_NDK_HOME to point to the installed SDK and NDK code example
Example: windows 10 change ANDROID_HOME
For Windows:
set ANDROID_HOME=C:\ installation location \android-sdk
set PATH=%PATH%;%ANDROID_HOME%\tools;%ANDROID_HOME%\platform-tools