Visual Studio doesn't let me debug on android

2020-05-20 08:52发布

I'm developing an android app with Xamarin and Visual Studio 2013. I have connected my android applet to the computer. Sansung Kies recognizes the device. Adb recognizes it also because when I type "adb devices" the device appears in the list. But when I debug the app Visual Studio doesn't let me choose my device, it only proposes to me to use the android virtual emulator. In my device the "USB debug" option is enabled. So what am I doing wrong?

8条回答
Anthone
2楼-- · 2020-05-20 09:53

I just ran adb command prompt and hit 'adb devices' and it showed daemon was not running. It installed itself and now i can able to see android devices there.

C:\...\...\source\repos\ABC\ABC\Ex.Android>adb devices
List of devices attached
* daemon not running; starting now at tcp:5037
* daemon started successfully
ZF22Q3T      unauthorized
查看更多
手持菜刀,她持情操
3楼-- · 2020-05-20 09:57

For VS 2015, LG Nexus 4 and Windows 7, following solution works for me.

Debugging On and Off during the running instance of Visual Studio, your physical device appears in the device list.

enter image description here

查看更多
登录 后发表回答