“DeviceMonitor]发送jdwp跟踪请求失败!”在 Eclipse/Android 中

发布于 2024-09-28 04:19:28 字数 400 浏览 4 评论 0原文

我是一个正在学习 Eclipse 和 Android 的菜鸟。每当我关闭模拟器时,我都会收到“DeviceMonitor]发送 jdwp 跟踪请求失败!”在控制台选项卡中。事实上,这似乎是我在控制台选项卡中得到的唯一东西 - 我没有得到所有模拟器加载消息和我以前看到的其他东西。

其他一切似乎都有效,我可以构建,在模拟器中运行,在模拟器中调试(设置调试配置后通过运行>调试......我无法让“调试为”工作,请参阅:Eclipse for Android 中的“调试为...” - 不知道这是否与这个问题)。

此消息是什么意思?我该如何更正它?提前致谢!

I'm a noob learning Eclipse and Android. Whenever I close the emulator I get "DeviceMonitor]Sending jdwp tracking request failed!" in the Console tab. Infact that seems to be the ONLY thing I get in the console tab - I don't get all the emulator loading messages and other things I used to see.

Everything else seems to work, I can build, run in the emulator, debug in the emulator (via Run>Debug after setting a Debug configuration . . . I can't get "Debug As" to work, see: "Debug As..." in Eclipse for Android - don't know if that's relevant to this problem).

What does this message mean, and how do I correct it? Thanks in advance!

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

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

发布评论

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

评论(5

夏有森光若流苏 2024-10-05 04:19:28

您收到的消息位于 Eclipse 的普通控制台中,并不重要,因为它只是报告您与模拟器的连接已丢失。没问题,正如你所描述的,你关闭了它。

普通的 android 日志只能通过 adb 工具(通过控制台)或 Eclipse 中名为 LogCat 的视图查看。如果您转到“窗口 ->”,您可以将其添加到您的工作屏幕中。查看->其他->安卓-> LogCat

我也建议查看 Android 工具的其他视图。就像设备或资源管理器一样。

LogCat 输出可能会出现空白。您需要清除 LogCat(视图顶部有一个按钮),如果这没有帮助,请尝试单击设备列表中的模拟器。如果没有任何帮助:关闭 eclipse 和模拟器并再次启动它们。

The message you receive is in the normal console of Eclipse and isn't really important, because it just reports you that the connection to the emulator was lost. That ok as you described you closed it.

The normal android log is only visible via the adb tool (via console) or with the view in Eclipse called LogCat. You can add that to your working screen if you go to Window -> View -> Other -> Android -> LogCat

I recommend to look at the other views of the android tools, too. Like Device or Explorer.

What might happen with the LogCat output is that it went blank. Than you need to clear the LogCat (there is a button for that on the top of the view) and if this doesn't help try to click on the emulator in the device list. If nothing of that helped: close eclipse and the emulator and start them again.

无妨# 2024-10-05 04:19:28

我通过更换连接到 PC 和设备的 USB 电缆来修复。
在重新启动开发机器之前,Eclipse,甚至设备都没有帮助。

I fixed by changing the usb cable which was connected to PC and device.
Before that restarting dev machine, eclipse, even the device dint help.

半暖夏伤 2024-10-05 04:19:28

关闭eclipse,停止adb进程。从命令行,“adb Kill-server”。

启动您的 Eclipse 项目。

Close eclipse, stop adb process. From command line, "adb kill-server".

Launch your eclipse project.

梨涡少年 2024-10-05 04:19:28

我不知道这是否肯定有帮助,但我遇到了类似的问题,我通过将工作区更改为另一个文件夹来解决它,我在其中放置了项目的副本,并将文件夹的名称更改为一个字符,以便它不会告诉我它们已经在使用了。然后我工作了,我只需要再次导入项目,然后重构它们的名称以匹配代码(只是项目名称)。

I don't know if this will help for sure, but I had a similar problem and I solved it by changing my workspace to a different folder where I placed copies of the projects and changed the names of the folders just one caracter so that It would not tell me they are already in use. Then I worked I just had to import the projects again and I refactored their names to match the code (just the project names).

风向决定发型 2024-10-05 04:19:28

此错误主要是由于驻留在“您的 sdk 位置”/工具中的“ddms”/“android”脚本的权限设置不正确造成的。

如果您只收到

Sending tracking request failed!

错误,请更改分配给 tools/android 的权限。
为此,请使用文件浏览器打开目录“您的 sdk 位置”/tools/。您应该看到一个名为 android 的文件,右键单击 ->属性->权限选项卡 ->选择允许执行和编程。 [chmod]。

如果您的错误是

Sending jdwp tracking request failed!

,那么您需要对“您的 sdk 位置/工具/ddms”应用上述相同的过程

This error is mostly result of incorrect permissions set for "ddms"/ "android" scrips residing in "your sdk location"/tools.

If you are getting only

Sending tracking request failed!

error then change the permissions assigned to tools/android.
To do that open the directory "your sdk location"/tools/ using file browser. You should see a file named android, right click-> properties -> permissions tab -> select allow executing and program. [chmod].

If your error is

Sending jdwp tracking request failed!

then you need to apply same procedure described above for "your sdk location/tools/ddms"

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