最近一直忙着考试的事情,而后找工做,找实习,找钱啊。对于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年,也会犯这种错误么。。。