For me, going to device manager in android studio and running the emulator, fixed it. Thus the emulator has to be running before you can select it to run the application on, which makes sense I guess...
[![enter image description here][1]][1]
[![enter image description here][2]][2]
[1]:
[2]: