David91
2 years agoFrequent Contributor
Unable to connect to the device with the name "emulator-5554" and index 1.
I've been having problems running the emulator since this morning. "Unable to connect to the device with the name "emulator-5554" and index 1.". Yesterday everything worked normally and I did not make any changes. Please advise me how to fix this. I tried:
1. set up a new emulator
2. restart PC/TestComplete
3. Another method .. TrySetCurrent
Still the same problem. Photo of the emulator and the error I send in the attachment. I use android 7.0. It's like it can't find the emulator. My script:
function SetEmulator()
{
Mobile.SetCurrent("emulator-5554"); // error line
var str = Mobile.Device().ShellExecute("ps");
Log.Message("Connecting to emulator - emulator-5554 ...");
}
Thank you for your advice!