即使按照https://developer.chrome.com/docs/devtools/remote-debugging/上列出的步骤操作,我还是无法在我的三星Galaxy S4上使用DevTools Devices功能

我的设备有Chrome v32和Chrome Beta v33,而我的个人电脑有Chrome v33和Chrome Canary v35。

我的设备上已开启USB调试,并且已安装设备驱动程序。我从未从上面的链接中得到步骤3中概述的提示,以批准RSA密钥指纹,但设备确实连接到我的PC以允许媒体传输。我甚至根据上面的链接撤销了所有USB调试授权。

我的电脑上没有任何额外安装的东西用于Android开发,这可能是问题所在。我希望利用这个功能从设备的角度来检查网页。


当前回答

我是应用程序编程的新手,这是我在尝试使用LG G3设备进行示例程序调试时遇到的第一个问题。上面有详细说明的职位应该适用于所有人。我补充了我的经验,以防它能帮助到其他人:

I had followed instructions step by step but one. That is, installing the USB driver from my OEM. My phone kept notifying that the debugging is on (in the notification area) and I could transfer data as well as charge. That made me think that appropriate USB drivers are installed. But it wasn't. Finally I went to LG site and downloaded the USB driver for my LG G3. Right after I installed the driver and reconnected the phone to the computer via the cable, I got the RSA key prompt. My Chrome now detects it and I was able to get my app run on my phone via Android studio as well.

其他回答

如果你没有安装ADT (Android开发工具包):

下载android SDK platform-tools.zip,执行命令"adb devices",成功检测到基于android的三星Galaxy手机。 它开始一些恶魔,发现附加设备,我也能看到它在铬金丝雀检查标签。

以前我也安装了“通用ADB驱动程序”,但不确定这是否是必需的

如果在华为或荣耀手机上运行,请确保在您的电脑上安装并运行HiSuite。USB调试只有在HiSuite打开时才能工作。

如果您使用“MTP模式”进行USB电脑连接。 更改为“PTP模式”或“读卡器模式”。

我也有同样的问题,它对我来说很好。

我使用过六种不同的Android设备和多种电缆,我不得不说调试器工作不稳定。有时它能看到设备,有时不能。有时重新启动Chrome会有帮助。这里有一个相关的bug https://bugs.chromium.org/p/chromium/issues/detail?id=788161,也许你可以提供你的证据。

执行adb命令行。像这样

adb devices