On your android studio, go to more actions and click that, then select 'Virtual Device Manager' You will be able to see your Emulators, go the one which is showing this problem 'Error: adb.exe: device offline' you will be able to see three dots on your right hand, click on those three dots and then select 'Cold Boot' then try to reconnect again, hopefully your problem will be solved.