The solution for me was opening Android Studio and going to SDK Manager, switch to the SDK Tools tab and check Android SDK Command-line Tools (latest).

Don’t forget to add to your PATH the tools and platform-tools folder that are inside your SDK.
The solution for me was opening Android Studio and going to SDK Manager, switch to the SDK Tools tab and check Android SDK Command-line Tools (latest).

Don’t forget to add to your PATH the tools and platform-tools folder that are inside your SDK.