When I click on the Run App button in Android Studio, the Select Deployment Target dialog box remains empty, even if I have created the "Nexus S API 24" virtual device to run my app. I get the following error:
08:22:39 error: Invalid argument: cannot open transport registration socketpair
08:22:39 could not read ok from ADB Server
08:22:39 * failed to start daemon *
08:22:39 error: cannot connect to daemon
08:22:39 'C:\Users\samarc\AppData\Local\Android\sdk1\platform-tools\adb.exe,start-server' failed -- run manually if necessary
And when I try to run the virtual device directly from the AVD Manager, I get the following list of errors (along with a dialog box saying, "It seems too many emulator instances are running on this machine. Aborting"):
C:\Users\samarc\AppData\Local\Android\sdk1\tools\emulator.exe -netdelay none -netspeed full -avd Nexus_S_API_24
libpng warning: iCCP: known incorrect sRGB profile
Hax is enabled
libpng warning: iCCP: known incorrect sRGB profile
Hax ram_size 0x40000000
libpng warning: iCCP: known incorrect sRGB profile
HAX is working and emulator runs in fast virt mode.
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: known incorrect sRGB profile
emulator: WARNING: UpdateCheck: Failure: Error
What should I do? I have already tried the following things:
- 1) Checking ports(5554 - 5587) for availability. (are available)
- 2) Unblocking ports (5554 - 5587) with Windows Firewall which doesn't work either. (Although I am starting to think that Android Studio uses some other ports. How do I find out which port Android Studio is using anyway?)
- 3) Killing the process, "adb.exe" in the Task Manager. (The fact is that there isn't any process called "adb.exe" running in the Task Manager!)
- 4) Rebooting the computer. (never works)
- 5) Reinstalling Android Studio (didn't work either)
What should I do? I use Windows 7 x64 and Android Studio 2.2.3. Please help anyway you can. I have already asked this question two times in Stack Overflow but I think this is the most detailed one, so please help.