ANDROID_HOME environment variable should point to Android SDK installation directory and PATH environment variable should contain path to Android SDK tools folder 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