即使按照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开发,这可能是问题所在。我希望利用这个功能从设备的角度来检查网页。


当前回答

要启动并运行该功能:

Follow steps at https://developers.google.com/chrome-developer-tools/docs/remote-debugging Install Windows USB driver http://developer.samsung.com/android/tools-sdks/Samsung-Android-USB-Driver-for-Windows Install Android SDK http://developer.android.com/sdk/index.html Install Android SDK Platform-tools http://developer.android.com/sdk/installing/adding-packages.html (this step was blocked on corporate wifi so I installed the single ADB package it required https://forum.xda-developers.com/showthread.php?t=2317790) Use command prompt to run ADB, in cmd go to the install directory of the ADB tools and type: adb.exe (might need to start and stop ADB using adb kill-server and adb start-server) Connect phone and browse to about:inspect in Chrome on desktop, ensuring a Chrome browser is open on your device

按照上面的步骤,我得到RSA密钥指纹提示接受,然后我在Chrome中看到我的设备。

绝对不像我想象的那么容易,但至少它现在起作用了。

2016年2月24日更新

所以我升级到Windows 10,现在有一台三星Galaxy S5,设备分别运行Chrome v48.0.2564.116 m和v48.0.2564.95 m。按照谷歌文档中的步骤……它又不能工作了,没有RSA密钥提示。所以我开始按照上面的步骤,并认为必须有一个更快的方法,因为Android SDK的下载超过1GB。

这次我试着:

Follow steps at https://developers.google.com/chrome-developer-tools/docs/remote-debugging Install Windows USB driver http://developer.samsung.com/android/tools-sdks/Samsung-Andorid-USB-Driver-for-Windows (the PC alerted me saying it was already installed but I still did it anyway) Install the single ADB package required https://forum.xda-developers.com/showthread.php?t=2317790) Go to the ADB install folder which for me was C:\Program Files (x86)\Minimal ADB and Fastboot\ Open command prompt and run adb devices (alternatively I could have run adb start-server but the prior gives a more informational response)

现在,Chrome打开我的手机和Chrome://inspect/打开我的桌面上,我可以看到检查选项。

下一个问题:每次重启Windows时,我都需要重复相同的步骤。要解决这个问题:

打开文本编辑器,复制到“C:\Program Files (x86)\Minimal ADB and Fastboot\ ADB”设备中 将该文件保存为adb.bat在Windows启动文件夹中,位于C:\ProgramData\Microsoft\Windows\开始菜单\Programs\ Startup

注意,只要是.bat文件,文件就不需要被称为adb.bat。您复制到文件中的命令具有默认安装路径,您可能需要更改该路径以进行设置。

现在我有Chrome检查功能工作时,我需要它。

感谢并大声向所有为这个问题提供答案的人喊话,他们帮助我对我的答案进行了有用的更新。请给其他你认为对你有帮助的答案署名。

其他回答

有一个必要的步骤没有详细说明:

ADB必须正在运行(并不是因为安装了ADB才运行以建立连接)

由于未知的原因,在chrome (canary)上打开“开发人员工具”不一定会启动具有良好参数的ADB运行。然后你不会在智能手机上看到问题“确认远程连接与'您的pc地址'”,而在pc上,你可以在连接面板上看到“未决未知连接”。那么,如果这种情况没有发生,连接就必然不会建立。注意,其他一些工具会启动ADB,但重要的是启动ADB并建立连接。

当您运行“>ADB connect 'IPofYourSmartphone port'”或ADB由软件运行以获得正确的连接时,ADB将发送请求,该请求在您的智能手机上显示面板确认

这对于USB或Wifi连接来说太有效了。 如果你在android上使用像“ADB无线亨利”这样的工具,你会得到一个完整的指南来获得一个wifi调试远程连接。

今天三星Galaxy Note 9和一台没有Android Studio的Windows 10笔记本电脑做了个噩梦。下面是进行调试的工作步骤。

1)正常开启手机开发者模式,打开“USB调试”。

2)在你的电脑上安装三星USB驱动程序的Windows https://developer.samsung.com/galaxy/others/android-usb-driver-for-windows

3)在你的电脑上打开Chrome浏览器-在开发控制台打开远程设备(目前它会说没有检测到设备)。

4)通过USB数据线连接你的手机和电脑。

5)接受任何授权提示,等待电脑提示“您的设备准备好了”。

6)在您的手机上,向下滑动顶部菜单,点击“P Android系统”-在“使用USB for”下选择“MIDI”。

7)各种设置通知将出现在您的PC上,当他们完成后,您将得到授权提示调试您的手机。接受它!再等几秒钟,你会发现手机现在出现在电脑上的Chrome开发工具中,几秒钟后就可以连接了。

不客气

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

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

这里是三星Note 8用户-我所要做的就是

打开话机的USB调试开关。 安装并运行“ADB and Fastboot”工具 在adb提示符中输入命令adb devices。 进入chrome://inspect/#devices,设备就会显示出来。

在那之后,我在我的手机上收到了一条消息,chrome浏览器认出了我的手机。