Android设备监视器中未列出“适用于Android的Visual Studio模拟器”设备 [英] 'Visual Studio Emulator for Android' devices are not listed in the Android Device Monitor
问题描述
我可以很好地启动VS Emulator设备,但是它们根本不会出现在ADB / Android工作室中。
我搜索并发现了类似的问题(
一次您添加这些条目
adb kill-server
adb启动服务器
重新启动Visual Studio Emulator for Android,然后运行 adb设备
,希望它应该才出现。
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_MACHINE\SOFTWARE\Wow6432Node\Android 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!
In my case I didn't have that entry in registry. But all you need to do is just create the key Android SDK Tools
that entry under
HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node
Then add the two keys as shown (right click -> New -> String Value). Add the correct path to your Android SDK. Here is what it should look like:
Once you add those entries
adb kill-server
adb start-server
Restart the Visual Studio Emulator for Android then run adb devices
and hopefully it should just appear.
这篇关于Android设备监视器中未列出“适用于Android的Visual Studio模拟器”设备的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!