Ubuntu的:Android设备调试设备、Ubuntu、Android

2023-09-12 02:53:41 作者:我与闹钟抗衡i

我有一个HTC Desire的,我想调试和运行我的Andr​​oid应用程序。但是,当我在Eclipse中获取窗口,我可以我的HTC Desire的上市仅用questionmarks设备之间进行选择(????????)。我究竟做错了什么?

I have a HTC Desire which i would like to debug and run my Android application on. But when i in Eclipse gets the Window where i can choose between devices my HTC Desire is listed with only questionmarks (????????). What am i doing wrong?

我已经试过这样:

已启用USB调试设备上并启用调试在我的应用Manifest.xml文件。

Enabled USB Debugging on my device and enabled debugging in my application Manifest.xml file.

在终端,我有做到这一点:

In Terminal i have do this:

在以root身份登录并创建这个文件:/etc/udev/rules.d/51-android.rules 在SUBSYSTEM ==USB,SYSFS {idVendor} ==0BB4,MODE =0666 须藤服务的udev重新启动

我还有什么可尝试或已经忘记了吗?

What else could i try or have forgotten?

推荐答案

您需要使用sudo手动运行ADB。如果只是运行ADB没有sudo(或者,如果你让的Eclipse / ADT为您代劳),它不会有必要查看设备的权限。

You need to run adb manually using sudo. If you just run adb without sudo (or if you let Eclipse/ADT do it for you), it won't have the permissions necessary to see your devices.

如果它已经运行,那么须藤ADB杀死服务器和sudo的亚行启动服务器。

If it's already running, then sudo adb kill-server and sudo adb start-server.