简体   繁体   English

Nexus4 USB调试问题

[英]Nexus4 USB Debugging Issue

I have a nexus4 and in developer options I switched on USB debugging. 我有一个nexus4,在开发人员选项中,我打开了USB调试功能。 After I connect it to my PC and press run from eclipse to test the app on my phone the app does not run! 将其连接到PC并按Eclipse键运行以在手机上测试该应用程序后,该应用程序无法运行! The window shows the option only of them emulator but not of Nexus4 I have nexus 4 drivers installed too. 窗口仅显示了它们的仿真器选项,而没有显示Nexus4的选项,我也安装了nexus 4驱动程序。 What can be the problem? 可能是什么问题?

Did you go a pressed "Build number" 7 times in the About Phone settings? 您是否在“关于电话”设置中按了7次“内部版本号”?

http://www.redmondpie.com/enable-developer-options-in-android-4.2-on-nexus-4-and-galaxy-nexus/ http://www.redmondpie.com/enable-developer-options-in-android-4.2-on-nexus-4-and-galaxy-nexus/

Did you try to restart the Eclipse? 您是否尝试过重新启动Eclipse? because I had pretty much same issue with my galaxy s2. 因为我的银河s2遇到了几乎相同的问题。

It is in fact an issue I have faced for long. 实际上,这是我长期面临的问题。

Use the SDK on Linux. 在Linux上使用SDK。 It works then. 然后就可以了。 For me it doesn't work when on Windows.... 对我来说,在Windows上无法正常使用...。

try: 尝试:

$ adb devices

and it should output something different than: 它应该输出与以下内容不同的内容:

????????????

if not then you don't have permissions to access your device, you need to restart the adb daemon, in Linux you would use: 如果没有,那么您没有访问设备的权限,则需要重新启动adb守护程序,在Linux中,您将使用:

$ adb kill-server

and then run the daemon as root: 然后以根用户身份运行守护程序:

$ sudo adb start-server

after that you would be able to use it; 之后,您将可以使用它; I'm not sure how to do this on Windows but I hope it helps 我不确定如何在Windows上执行此操作,但希望对您有所帮助

尝试使用nexus 4工具包重新安装驱动程序(您可以在xda上找到它)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM