I struggled with this problem for a few days now and the number 1 suggestion I found is:
- review your environment variables (such as %ANDROID_HOME%);
- remove the platform-tools dir inside %ANDROID_HOME%, adb.exe is either corrupted or missing;
- reinstall Android SDK and check for adb.exe inside %ANDROID_HOME%platform-tools;
- emulate a new device (you are a wizard Harry!);
Well, this didn't work for me but apparently worked for some people, especially for avast users (apparently it corrupts adb.exe 'cause it believes it to be malware).
What worked for me was:
- In Android Studio go to File > Project Structure (Ctrl + Alt + Shift + S in windows);
- Under Project Settings>Project>Project SDK must have a valid Android SDK selected;
- emulate a new device (you are a wizard SadSack963!);
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…