It's worked for me (Android Studio 3.1.3):
1. Make sure that 'Android SDK Platform-Tools' is installed:
Tools > SDK Manager > SDK Tools (Tab)
2. Copy path of 'adb.exe' file. Usually here:
C:\Users\Username\AppData\Local\Android\Sdk\platform-tools
3. Open Enviroment Variables in Windows:
'Window + R' > and type 'SystemPropertiesAdvanced'> Enviroment Variables...
4. Create new system variable with name 'PATH' and value of your adb.exe path like that 'C:\Users\Username\AppData\Local\Android\Sdk\platform-tools'