On Saturday, 20 August 2016 15:35:12 UTC+1, Sharon Gilmore wrote: > > For 3 days now I've been getting the error "Unable to obtain result of > 'adb version'" when I try to run an emulator in Android Studio. 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 - not sure how to check this, but > it doesn't say that it's blocking anything. > > I'm stuck now. Can't do any development, and it's been like this for 3 > days. I don't know what else to try. I literally can't proceed with any > development until I resolve this (and I rely on this for income)! Can > anyone suggest anything else I could try? > > Am on Windows 10, and have upgraded to the latest Android Studio (2.1.3). > > Thanks! >
Update: I tried some more things: > Turned anti-virus firewall off - didn't change anything > 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, though - I'm wondering whether Android Studio is looking in the wrong place for it... is there a way to check the path? 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. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/android-developers. To view this discussion on the web visit https://groups.google.com/d/msgid/android-developers/6a3028f3-1be5-411e-97d3-a9fce8396872%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.

