在 Ubuntu 10.10 上使用真实 Android 手机在 Eclipse 中进行调试
我无法让 adb 在新升级的 Ubuntu 10.10 Maverick Meerkat 上识别我的 HTC Desire。
adb devices 显示
List of devices attached
???????????? no permissions
现在,有很多关于更改 /etc/udev/rules.d/ 下的规则文件的教程。 但是,我找不到 10.10 的具体信息。
谁能告诉我规则文件名和内容是否与 链接文本中描述的相同,或者我们是否正在为这个新版本考虑一些新设置?
非常感谢
I can't get adb to recognising my HTC Desire on my new upgrade of Ubuntu 10.10 Maverick Meerkat.
adb devices shows
List of devices attached
???????????? no permissions
Now, there are plenty of tutorials for changing rule files under /etc/udev/rules.d/.
However, I cannot find one specific for 10.10.
Can anyone tell me whether the rule file name and content is the same as described at link text, or are we looking at some new settings for this new release?
Many thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(6)
在带有 Samsung Galaxy S2 的 Linux Mint/Ubuntu 11.04 上,我没有使用任何规则,但是当“重置 adb”或“设备视图”时,它显示:
:
然后我可以按照本教程截取屏幕截图: http://www.addictivetips.com/mobile/how-to-take-screenshots-of-android-device/
干杯
On Linux Mint/Ubuntu 11.04 with a Samsung Galaxy S2, I didn't use any rules, but when "reset adb" or when "Devices view" it shows:
I had to :
Then I was able to take screenshots following this tutorials: http://www.addictivetips.com/mobile/how-to-take-screenshots-of-android-device/
Cheers
我对 Ubuntu 11.04 的魔咒:
然后进入 eclipse 并开始在真机上调试
My magic spell for Ubuntu 11.04:
Then go to eclipse and start debugging on real device
好吧,我来晚了一点,但这是另一种方法...
在 /etc/udev/rules.d 中创建一个名为 51-android.rules 的文件,其中包含以下内容
然后运行以下命令重新加载 udev 规则...
udevadm control --reload-rules
现在将您的 Galaxy S2 手机插入计算机的 USB 端口并运行
adb devices
。注意:您需要更改供应商 ID(以粗体突出显示)以匹配您手机的供应商 ID(在 OP 的情况下,HTC 的供应商 ID 应为 0bb4)
Ok I am a little late to the party but here is another approach...
Create a file called 51-android.rules in /etc/udev/rules.d with the following contents
Then run the following command to reload the udev rules ...
udevadm control --reload-rules
Now plug in your galaxy S2 mobile phone into the computer's USB port and run
adb devices
.NOTE: You will need to change the vendor id (highlighted in bold) to match your phone's vendor id (in the OP's case it should be 0bb4 for HTC)
好吧,我想教程有效,我创建了 70-android.rules 和 51-android.rules,再次重新输入它们(从网络复制时去掉有趣的引号)。
重新启动
,现在已经被识别了!
Okay, I guess the tutorials work, I created both 70-android.rules and 51-android.rules, re-typed them again (get rid of the funny quotes when you copy from the web).
Restart
And now it is recognised!
在 Windows 上,我必须从 HTC 下载特殊应用程序才能获得正确的 USB 驱动程序以连接到我的 Evo。该应用程序允许您将 Outlook 联系人/日历(哇...)与手机上的联系人/日历同步。我相当怀疑 ubuntu/Linux 是否有类似的东西可用。
我强烈怀疑你也遇到了类似的情况。标准 USB 驱动程序不适用于 HTC 手机,因此您需要其他东西。
如果升级后此问题停止工作,您需要仔细查看任何与 USB 相关的更改。
祝你好运。
On windows, I had to download a Special App from HTC in order to get the proper USB drivers to connect to my Evo. The app in question allows you to synch your outlook contacts/calendar (weee...) with those on your phone. I rather doubt there's something similar available for ubuntu/Linux.
I strongly suspect you're up against a similar situation. The standard USB drivers don't work with HTC phones, so you need Something Else.
If this is something that stopped working with the upgrade, you'll need to take a close look at any USB-related changes.
Good luck.
大家好,检查各方面后我感到非常沮丧
但有一天我得到了这个问题的解决方案,请按照以下步骤操作
现在您已经获得了连接到系统的设备列表。
Hi all i am very frustrated by checking all sides
But one day i got the solution of this problem pls follow the following steps
Now you got the list of devices attach to your systems.