最近一直忙着考試的事情,而後找工做,找實習,找錢啊。對於Android我抱有很大的夢想,現實是殘酷的。android
OK,上面純粹扯蛋了。今天手機鏈接電腦,打開USB調試,理論上就應該鏈接eclipse成功,能夠在手機上直接測試開發中的項目。可是問題來了,怎麼弄都沒有反應。web
什麼叫怎麼弄都沒反應,我嘗試了百度中的全部方法:app
OK,實在不能忍了,我就去了stackoverflow,已search發現有人的狀況和我是同樣的。引用一下原文,我才發現本身並無深刻的去理解本身的問題所在:eclipse
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!this
另外這裏還有一個解決辦法,放在這裏,算是大殺器吧,理論上能夠通殺非1,2方法的問題。spa
這裏也是引用的別人的話,湊活看吧,比較好理解,就是刪了重裝。debug
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年,也會犯這種錯誤麼。。。