Chrome DevTools设备插入电源后无法检测到设备 [英] Chrome DevTools Devices does not detect device when plugged in
问题描述
即使按照我的设备具有Chrome v32和Chrome Beta v33,而我的PC具有Chrome v33和Chrome Canary v35.
My device has Chrome v32 and Chrome Beta v33, while my PC has Chrome v33 and Chrome Canary v35.
在我的设备上启用了USB调试,并且已经安装了设备驱动程序.我从未从上面的链接获得第3步中概述的批准RSA密钥指纹的提示,但该设备确实已连接到我的PC以允许媒体传输.根据以上链接,我什至吊销了所有USB调试授权.
USB debugging is enabled on my device and device driver has been installed. I have never got the prompt as outline in step 3 from the above link to approve the RSA key fingerprint yet the device does connect to my PC to allow media transfer. I have even revoked all USB debugging authorizations as per the link above.
我的PC上没有安装用于Android开发的任何其他东西,这可能是问题所在.我希望利用此功能从设备的角度检查网页.
I don't have any thing extra installed on my PC for Android development which may perhaps be the issue. I wish to utilise this feature to inspect web pages from the devices point of view.
推荐答案
要启动并运行该功能,
- 按照 https://developers.google.com/chrome上的步骤进行操作-developer-tools/docs/远程调试
- 安装Windows USB驱动程序 http://developer.samsung.com/android/tools-sdks/Samsung-Android-USB-Driver-for-Windows
- 安装Android SDK http://developer.android.com/sdk/index.html
- 安装Android SDK平台工具 http://developer.android.com/sdk/installing/adding-packages.html (此步骤已在公司wifi上被阻止,因此我安装了需要
- 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 usingadb kill-server
andadb start-server
)- Connect phone and browse to
about:inspect
in Chrome on desktop, ensuring a Chrome browser is open on your device
按照上述步骤操作后,我收到了RSA密钥指纹提示,然后我在Chrome中看到了我的设备.
Following the above steps I got the RSA key fingerprint prompt to accept then I saw my device in Chrome.
绝对不像我想的那样容易,但至少现在可以了.
Definitely not as easy as I thought it would have been but at least it now works.
2016年2月24日更新
所以我更新到Windows 10,现在有了Samsung Galaxy S5,分别运行Chrome v48.0.2564.116 m和v48.0.2564.95的设备.遵循了Google文档中的步骤,并且...此操作不再起作用,没有RSA密钥提示.因此,我开始按照上述步骤进行操作,并认为必须有一种更快的方法,因为Android SDK的下载量超过1GB.
So I updated to Windows 10 and now have a Samsung Galaxy S5, devices running Chrome v48.0.2564.116 m and v48.0.2564.95 respectively. Followed the steps from the Google docs and...it didn't work again, no RSA key prompt. So I began to follow my steps as above and thought there had to be a faster way as the Android SDK was over 1GB download.
这次我尝试:
- 按照 https://developers.google.com/chrome上的步骤进行操作-developer-tools/docs/远程调试
- 安装Windows USB驱动程序 http://developer.samsung.com/android/tools-sdks/Samsung-Andorid-USB-Driver-for-Windows (PC提醒我说它已经安装了,但无论如何我还是这么做了)
- 安装所需的单个ADB软件包 https://forum.xda-developers. com/showthread.php?t = 2317790 )
- 转到对我来说是
C:\Program Files (x86)\Minimal ADB and Fastboot\
的ADB安装文件夹
- 打开命令提示符并运行
adb devices
(或者,我本可以运行adb start-server
,但先前版本会提供更多信息性响应)
- 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 runadb start-server
but the prior gives a more informational response)
现在,在手机上打开Chrome并在桌面上打开chrome://inspect/
的情况下,我可以看到检查选项.
Now, with Chrome open on my phone and chrome://inspect/
open on my desktop I can see the inspect options.
下一个问题:每次重新启动Windows时,我都需要重复相同的步骤.要解决该问题:
Next problem: I need to repeat the same steps each time I reboot Windows. To solve that issue:
- 打开文本编辑器并复制到
"C:\Program Files (x86)\Minimal ADB and Fastboot\adb" devices
- 将该文件另存为
adb.bat
在位于C:\ProgramData\Microsoft\Windows\Start Menu\Programs\StartUp
的Windows启动文件夹中.
- Open a text editor and copy in
"C:\Program Files (x86)\Minimal ADB and Fastboot\adb" devices
- Save that file as
adb.bat
in the Windows Startup folder located atC:\ProgramData\Microsoft\Windows\Start Menu\Programs\StartUp
请注意,只要它是.bat文件,就不必将其称为adb.bat.复制到文件中的命令具有默认安装路径,您可能需要更改默认安装路径.
现在,我可以在需要时使用Chrome Inspect功能.
Now I have the Chrome Inspect feature working when I need it.
对所有对此问题做出贡献的其他人表示感谢,并大声疾呼,这有助于指导我对我的答案进行有益的更新.请归功于其他答案,如果发现它们也对您有所帮助.
Bit thanks and shout out to all others who have contributed their answers to this question which helped guide me towards a useful update to my answer. Please give credit to other answers where you find they have helped you too.
这篇关于Chrome DevTools设备插入电源后无法检测到设备的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!