This problem started just two days ago.
这个问题在两天前就开始了。
Suddenly USB Debugging for Android is not working on my system.
突然,Android的USB调试无法在我的系统上运行。
My Current status..
我目前的状态..
Emulators are being properly detected and work 1000% But when i plug in a device it shows up under devices but a connection is not established by adb.
仿真器正在被正确检测并正常工作1000%但是当我插入设备时它会显示在设备下但是adb没有建立连接。
Running 'devices ' command from adb does not list it as one of the attached devices. I have tried with 3 diff devices HTC One , Galaxy Advance , Galaxy POP it all the same situation.
从adb运行'devices'命令不会将其列为连接的设备之一。我试过用3个差异设备HTC One,Galaxy Advance,Galaxy POP这一切都是一样的情况。
System Config
Windows 7 64 bit Eclipse 4.2.2 ADT Plugin 22.3.0 Platform-tools 19.0.1
Windows 7 64位Eclipse 4.2.2 ADT插件22.3.0平台工具19.0.1
I think the last modifications i did to the system is updating the Android Sdk using SDK Manager. I am not sure what all got updated.
我认为我对系统所做的最后修改是使用SDK Manager更新Android Sdk。我不确定所有更新的内容。
What i tried so far..
到目前为止我尝试了什么..
Restarting Eclise / System.. Reinstalling the ADT Plugin.
重启Eclise / System ..重新安装ADT插件。
I would appreciate any suggestions on how to fix this problem.
我将不胜感激任何有关如何解决此问题的建议。
7 个解决方案
#1
1
I finally got it to work but still not sure what the problem was.
我终于开始工作,但仍不确定问题是什么。
Here is what i did ...
这就是我做的......
I Downloaded the latest ADT Bundle, then pointed the SDK to my original set i was using before as it contained the full set of platforms ,docs etc.
我下载了最新的ADT Bundle,然后将SDK指向我之前使用的原始集合,因为它包含完整的平台,文档等。
For any one who needs to do this ..
对于任何需要这样做的人..
- Open the Eclipse in the downloaded bundle. (It contains the latest platform only)
- Goto Window -> Preferences
- Choose Android on the Left side
- On the Right Click Browse and select the "android-sdk" folder that you need to use
- Click OK at the bottom
在下载的包中打开Eclipse。 (它仅包含最新平台)
转到窗口 - >首选项
在左侧选择Android
在右键单击“浏览”并选择您需要使用的“android-sdk”文件夹
单击底部的“确定”
#2
1
I was having a similar issue, I couldn't even re-install the drivers. A restart of the computer ended up fixing the issue.
我遇到了类似的问题,我甚至无法重新安装驱动程序。重新启动计算机最终解决了问题。
#3
0
It maybe due to the emulators blocking the access to the adb drivers... Try this, * Power off emulator * In command window type 'adb kill-server' then 'adb start-server' then 'adb devices'
这可能是由于模拟器阻止了对adb驱动程序的访问...试试这个,*关闭模拟器*在命令窗口输入'adb kill-server'然后'adb start-server'然后'adb devices'
This may solve it...
这可以解决它......
#4
0
-
Try to locate the android_winusb path of Google USB driver through control panel. Update driver software->let me pick list of device drivers->"C:\android-sdks\extras\google\usb_driver"->next and finish.
尝试通过控制面板找到Google USB驱动程序的android_winusb路径。更新驱动程序软件 - >让我选择设备驱动程序列表 - >“C:\ android-sdks \ extras \ google \ usb_driver” - >接下来完成。
-
Make sure that you have enabled the USB Debugging mode
确保已启用USB调试模式
#5
0
I just had a similar issue and I discovered Eclipse was not detecting my Android phone, connected via USB, because I had the phone connected as Camera (PTP). When I set it to Media device (MTP), Eclipse was able to detect my phone and launch to it.
我刚刚遇到了类似的问题,我发现Eclipse没有检测到我的Android手机,通过USB连接,因为我将手机连接为相机(PTP)。当我将其设置为媒体设备(MTP)时,Eclipse能够检测到我的手机并启动它。
You can change this mode in newer version of Android via the pull down tray (top).
您可以通过下拉托盘(顶部)在较新版本的Android中更改此模式。
Hope that helps anyone who had the same issue as me.
希望能帮助任何与我有同样问题的人。
Cheers!
#6
0
A few things that I try when this (regularly) happens:
当(定期)发生时我尝试的一些事情:
- Check cable is properly seated
- Restart phone
- On phone, Settings > More > Developer options, disable then re-enable USB debugging
- On PC, open command prompt and type 'adb devices'; if phone appears but status is 'unauthorized' you need to respond to a prompt on the phone.
检查电缆是否正确就位
在手机上,设置>更多>开发人员选项,禁用然后重新启用USB调试
在PC上,打开命令提示符并键入“adb devices”;如果手机出现但状态为“未经授权”,则需要回复手机上的提示。
Keep looking out for a USB symbol in the top left corner of the phone, this usually means adb is connected.
继续在手机的左上角寻找USB符号,这通常意味着adb已连接。
#7
0
If none of the answers above helped you (as was my case), try this dumb solution, which worked for me:
如果上面的答案都没有帮助你(就像我的情况一样),试试这个对我有用的愚蠢的解决方案:
I have 3 USB ports on my laptop. Only one of them works with debugging. Thus, try different ports on your device, if you have them.
我的笔记本电脑上有3个USB端口。其中只有一个用于调试。因此,如果您有设备,请尝试设备上的不同端口。
#1
1
I finally got it to work but still not sure what the problem was.
我终于开始工作,但仍不确定问题是什么。
Here is what i did ...
这就是我做的......
I Downloaded the latest ADT Bundle, then pointed the SDK to my original set i was using before as it contained the full set of platforms ,docs etc.
我下载了最新的ADT Bundle,然后将SDK指向我之前使用的原始集合,因为它包含完整的平台,文档等。
For any one who needs to do this ..
对于任何需要这样做的人..
- Open the Eclipse in the downloaded bundle. (It contains the latest platform only)
- Goto Window -> Preferences
- Choose Android on the Left side
- On the Right Click Browse and select the "android-sdk" folder that you need to use
- Click OK at the bottom
在下载的包中打开Eclipse。 (它仅包含最新平台)
转到窗口 - >首选项
在左侧选择Android
在右键单击“浏览”并选择您需要使用的“android-sdk”文件夹
单击底部的“确定”
#2
1
I was having a similar issue, I couldn't even re-install the drivers. A restart of the computer ended up fixing the issue.
我遇到了类似的问题,我甚至无法重新安装驱动程序。重新启动计算机最终解决了问题。
#3
0
It maybe due to the emulators blocking the access to the adb drivers... Try this, * Power off emulator * In command window type 'adb kill-server' then 'adb start-server' then 'adb devices'
这可能是由于模拟器阻止了对adb驱动程序的访问...试试这个,*关闭模拟器*在命令窗口输入'adb kill-server'然后'adb start-server'然后'adb devices'
This may solve it...
这可以解决它......
#4
0
-
Try to locate the android_winusb path of Google USB driver through control panel. Update driver software->let me pick list of device drivers->"C:\android-sdks\extras\google\usb_driver"->next and finish.
尝试通过控制面板找到Google USB驱动程序的android_winusb路径。更新驱动程序软件 - >让我选择设备驱动程序列表 - >“C:\ android-sdks \ extras \ google \ usb_driver” - >接下来完成。
-
Make sure that you have enabled the USB Debugging mode
确保已启用USB调试模式
#5
0
I just had a similar issue and I discovered Eclipse was not detecting my Android phone, connected via USB, because I had the phone connected as Camera (PTP). When I set it to Media device (MTP), Eclipse was able to detect my phone and launch to it.
我刚刚遇到了类似的问题,我发现Eclipse没有检测到我的Android手机,通过USB连接,因为我将手机连接为相机(PTP)。当我将其设置为媒体设备(MTP)时,Eclipse能够检测到我的手机并启动它。
You can change this mode in newer version of Android via the pull down tray (top).
您可以通过下拉托盘(顶部)在较新版本的Android中更改此模式。
Hope that helps anyone who had the same issue as me.
希望能帮助任何与我有同样问题的人。
Cheers!
#6
0
A few things that I try when this (regularly) happens:
当(定期)发生时我尝试的一些事情:
- Check cable is properly seated
- Restart phone
- On phone, Settings > More > Developer options, disable then re-enable USB debugging
- On PC, open command prompt and type 'adb devices'; if phone appears but status is 'unauthorized' you need to respond to a prompt on the phone.
检查电缆是否正确就位
在手机上,设置>更多>开发人员选项,禁用然后重新启用USB调试
在PC上,打开命令提示符并键入“adb devices”;如果手机出现但状态为“未经授权”,则需要回复手机上的提示。
Keep looking out for a USB symbol in the top left corner of the phone, this usually means adb is connected.
继续在手机的左上角寻找USB符号,这通常意味着adb已连接。
#7
0
If none of the answers above helped you (as was my case), try this dumb solution, which worked for me:
如果上面的答案都没有帮助你(就像我的情况一样),试试这个对我有用的愚蠢的解决方案:
I have 3 USB ports on my laptop. Only one of them works with debugging. Thus, try different ports on your device, if you have them.
我的笔记本电脑上有3个USB端口。其中只有一个用于调试。因此,如果您有设备,请尝试设备上的不同端口。