I am presently unable to do app testing on Android Studio, and I don't know what to do next. I've been getting the error "Unable to obtain result of 'adb version'" when I try to run an emulator. I don't think I changed anything on my system to make it happen, though I usually update any packages Android Studio recommends. I've Googled and that has given me a number of things to try, but I'm no further on. I've tried the following:
Uninstalling and reinstalling platform-tools - I even downloaded version 23 (I'm currently on 24) and replaced 24 with that, but that didn't work.
Uninstalling and reinstalling Android Studio - this worked for a day, but took hours, so I can't just do it every time.
Checking adb.exe exists and the path is correct etc. - adb.exe exists in C:\Users\My Name\AppData\Local\Android\sdk\platform-tools and it seems ok.
Anti-virus software blocking adb.exe - turned Firewall off; didn't help.
Ran adb from the command line - runs ok, but when I type "adb devices", I get an empty list. If I go into Android Studio and start a device manually from the AVD Manager, and then do "adb devices" again, this time the running device shows up
The location of "where adb" seems to be correct - I'm wondering whether Android Studio is looking in the wrong place for it. Is there a way to check the path?
Went to the platform-tools folder and typed "adb tcpip 5555" - it said it was starting the daemon, and then that it had started successfully, but that still didn't help
Disabled "Enable ADB integration" option, and then re-enabled it. Didn't help. Then tried killing the adb server from the command line in between disabling/enabling. Tried restarting AS in between as well, still didn't help.
I'm stuck now, and I don't know what else to try. Would anyone suggest anything else I could try?
Also, I reckon I could temporarily push the app to the device using the command line, but I'm not sure what to push if I'm only testing, as I don't have an apk file (I think). Which file would I push over to the emulator? And how do I do that? The emulator appears to be called emulator-5554.
I am on Windows 10, and have upgraded to the latest Android Studio (2.1.3).