Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
535 views
in Technique[技术] by (71.8m points)

adb - 'Visual Studio Emulator for Android' devices are not listed in the Android Device Monitor

I can start the VS Emulator devices just fine, but they simply don't show up in ADB/Android studio.

I searched and found a similar SO question (same issue, only I installed the standalone emulator) but OP provided a workaround and I would like to know how to actually fix it so it shows up every time as intended instead of having to connect it manually (and as per SO etiquette didn't want to ask there in the comments).

I also found a "solution" in a Microsoft FAQ post which instructs you to edit a registry key under

HKEY_LOCAL_MACHINESOFTWAREWow6432NodeAndroid SDK Tools

but the 'Android SDK Tools' is nowhere to be found under 'Wow6432Node' in my registry, which could very well be the cause of the problem to begin with. I'm not sure if it's missing because of the Android Studio/SDK installation or something else, but for example Genymotion devices connect to ADB without any problems. (I always feel uneasy about adding anything to registry manually, but maybe I should add the 'PATH' myself?)

I installed everything just today on a fresh Windows 10 installation and didn't mess with anything in the registry myself.

Any help is appreciated. Thanks in advance!

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

I experienced this issue when i moved my android SDK (due to disc space reasons).

If you open regedit and go to the following registry entry:

HKEY_LOCAL_MACHINESOFTWAREWow6432NodeAndroid SDK Tools

and edit the value Path to look at your new android sdk location it should work.

you may have to call:

adb kill-server
adb start-server

and relaunch your emulator again to get adb devices to see it but it should show up in the end

You may also need to restart your machine just to be safe


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...