verify that the path environment variable points to the location where the sdk is installed 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