Android:Logcat]在运行 Google 的示例记事本应用程序时找不到设备

发布于 2024-09-29 19:48:23 字数 554 浏览 3 评论 0原文

我打开了我的 NotepadCodeLab、NotepadAdv1 项目,并在构建和运行后立即得到了这个:

[2010-11-01 14:42:48 - DeviceMonitor]Sending jdwp tracking request failed!
[2010-11-01 14:42:48 - Logcat]device not found
com.android.ddmlib.AdbCommandRejectedException: device not found
at com.android.ddmlib.AdbHelper.setDevice(AdbHelper.java:736)
at com.android.ddmlib.AdbHelper.executeRemoteCommand(AdbHelper.java:373)
at com.android.ddmlib.Device.executeShellCommand(Device.java:285)
at com.android.ddmuilib.logcat.LogPanel$3.run(LogPanel.java:516)

我缺少什么?

I opened my NotepadCodeLab, NotepadAdv1 project, and got this as soon as I built and ran:

[2010-11-01 14:42:48 - DeviceMonitor]Sending jdwp tracking request failed!
[2010-11-01 14:42:48 - Logcat]device not found
com.android.ddmlib.AdbCommandRejectedException: device not found
at com.android.ddmlib.AdbHelper.setDevice(AdbHelper.java:736)
at com.android.ddmlib.AdbHelper.executeRemoteCommand(AdbHelper.java:373)
at com.android.ddmlib.Device.executeShellCommand(Device.java:285)
at com.android.ddmuilib.logcat.LogPanel$3.run(LogPanel.java:516)

What am I missing?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

月隐月明月朦胧 2024-10-06 19:48:23

模拟器还是物理设备?如果是模拟器,它已经在运行了吗?如果是设备,是否通过 USB 连接?

假设您已安装 SDK 并且在您的路径上,如果您在命令提示符中键入“adb devices”,您的设备应该会显示。如果没有,请按照此处的 SDK 安装说明进行操作:

http://developer.android.com/ sdk/installing.html

Emulator or physical device? If emulator, is it already running? If it's a device, is it connected via USB?

Assuming you have the SDK installed and on your path, if you type "adb devices" into the command prompt, your device should show up. If it doesn't, follow the SDK installation instructions here:

http://developer.android.com/sdk/installing.html

溺孤伤于心 2024-10-06 19:48:23

如果您使用的是真实设备,请不要忘记 USB 驱动程序。您还必须在 SDK 和 AVD 管理器中安装适合您手机的正确版本。如果您已升级到 v2.2,则还要安装 v2.1。

If you're using a real device, don't forget the USB driver. You also have to have installed into your SDK and AVD manager the correct version for your phone. If you were upgraded to v2.2, also install v2.1.

两人的回忆 2024-10-06 19:48:23

奇怪的是,当我第二天回来时(重新启动 Eclipse/我的计算机后),它起作用了。应该先尝试一下。不过谢谢:)

Bizarrely, when I came back the next day (after restarting Eclipse/my computer), it worked. Should have tried that first. Thanks though :)

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文