即使按照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.

其他回答

我是应用程序编程的新手,这是我在尝试使用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.

在一台Galaxy S7和Windows 10笔记本电脑上,当我连接到电脑时,我所要做的就是将USB连接模式更改为“音频源”(电话设置>开发人员选项> USB配置)。

然后立即出现设备上的提示,允许RSA密钥指纹。然后电脑上的开发工具识别了我的设备。

我不知道为什么这样做,但它是迄今为止最简单的解决方案,而且不需要安装不必要的软件。

我也有一些运气把它改为“MTP(媒体传输协议)”模式,但只是偶尔。

编辑:

MTP选项不再适用于我。

除“音频源”外,还可以将连接方式设置为“MIDI”。通过直接从设备的通知栏访问来更改连接模式要容易得多-点击“通过USB传输媒体文件”或等效的通知。

使用MIDI可能是两种方法中最简单的,因为它不需要进入多个设置屏幕来访问它。

ADB必须运行。去看看

C:\Users\yourUserName\AppData\Local\Android\Sdk\platform-tools并运行adb设备,守护进程应该启动,然后显示所有连接的设备。

多年来,我一直在不同的电脑和设备上使用这个工具。我经常发现chrome / ADT看不到我的设备。

在这种情况下,唯一对我有效的是重置ADB deamon:

adb kill-server

或/及

adb usb

重新插入设备后,将在设备上显示一条消息,要求您允许从连接的计算机进行USB调试。允许这个请求是非常重要的。

我尝试了@maurice cruz的答案,但无法找到实际的司机。然后我发现这篇文章有一个全球LG驱动程序的下载(不确定是否涵盖了所有,但很多)。安装完成后,关闭usb调试开关,然后打开,系统提示我接受RSA。