简体   繁体   English

Android新手-在物理设备上调试应用

[英]Android newbie - debugging app on physical device

I was trying to debug my code on a physical device instead of an emulator. 我试图在物理设备而不是仿真器上调试代码。 In order to do this after a series of steps I finally plugged in my device only to see that "Samsung_Android" and "CDC serial" drivers are missing. 为了在执行了一系列步骤之后执行此操作,我终于插入设备,只是看到缺少“ Samsung_Android”和“ CDC串行”驱动程序。

It seems very odd for these drivers to be missing. 这些驱动程序丢失似乎很奇怪。 What am I doing wrong, any suggestions ? 我在做什么错,有什么建议吗?

Thanks in advance for your help. 在此先感谢您的帮助。

You need to install the usb drivers for ADB. 您需要为ADB安装USB驱动程序。 For samsung, you need to install kies, located here. 对于三星,您需要在此处安装凯斯 Also, if you have problems there are some stack overflow related questions, like this one. 另外,如果您有问题,也有一些与堆栈溢出相关的问题,例如这一问题

Do you have kies installed? 你有凯斯装吗? Go to C:\\Program Files\\Samsung\\Kies (or whatever folder) and look for a folder named USB driver. 转到C:\\ Program Files \\ Samsung \\ Kies(或其他文件夹),然后找到名为USB驱动程序的文件夹。 Instal the executable inside, make sure kies is not running and connect the phone to the computer. 安装可执行文件,确保kies没有运行,然后将手机连接到计算机。 It should work just fine 它应该工作正常

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM