Eclipse无法连接真机 并非ADB被占用 原因 很2 已解决 记录之
最近一直忙著考試的事情,然后找工作,找實習,找錢啊。對于Android我抱有很大的夢想,現實是殘酷的。
?
OK,上面純粹扯蛋了。今天手機連接電腦,打開USB調試,理論上就應該連接eclipse成功,可以在手機上直接測試開發中的項目。但是問題來了,怎么弄都沒有反應。
?
什么叫怎么弄都沒反應,我嘗試了百度中的所有方法:
OK,實在不能忍了,我就去了stackoverflow,已search發現有人的情況和我是一樣的。引用一下原文,我才發現自己并沒有深入的去理解自己的問題所在:
?
I don't want to debug my Android apps on emulator (Android Virtual Device) anymore. Instead, I want to debug it on my phone. My phone is LG Optimus L7 P700.
I already have downloaded USB Driver for my phone from official LG support web site. On my AVD Manager: Google USB Driver is also installed. Also, I ticked my Settings > Developer options-> USB debugging on my phone to be enabled. I connected my phone via USB cable, but I have problem now. When I run?adb devices?command on my command prompt as mentioned on tutorials I found on Google, my list of attached devices is empty, as u can see below in screenshoot. Here is screenshoot of my command prompt:?http://i.imgur.com/J43CDqs.jpg
Also when I go to My Computer->Manage, my phone have yellow exclamation point, I dont know why ? Here is screenshoot:?http://i.imgur.com/cfna7ds.jpg
?
?
最終我發現,原來是我的Nexus 4驅動未裝好,這里我就要納悶了,我驅動沒有裝好,我也可以傳各種文件么。。。額,求科普。而且我的驅動無法自動搜索,迫使我從網上下載安裝,然后終于在Eclipse中看到了我的手機。OH MY GOD. HOLLY SHIT!
另外這里還有一個解決辦法,放在這里,算是大殺器吧,理論上可以通殺非1,2方法的問題。
這里也是引用的別人的話,湊活看吧,比較好理解,就是刪了重裝。
?
this is tricky sometimes. uninstall adb drivers through device manager and re-install them. uninstall all other adb drivers probably installed on your machine first before re-install. after installation connect your phone and choose driver-path manually. this is always the biggest pain for me with android development, I wasn`t able to connect one of my devices at all.
?
?
?
原因找到了,覺得自己很2.唉,有木有,專業開發20年,也會犯這種錯誤么。。。
?
轉載于:https://www.cnblogs.com/Jacky-Fight/p/3402961.html
總結
以上是生活随笔為你收集整理的Eclipse无法连接真机 并非ADB被占用 原因 很2 已解决 记录之的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 搭建hypervisor类型为VMWar
- 下一篇: 腾讯后台开发面试