In Windows 10 I added <ANDROID_SDK_PATH>/platform-tools path to the path of environment variables and it fixed.
<ANDROID_SDK_PATH>/platform-tools