无法调度 DDM 块 46454154:未定义处理程序 - Eclipse - Android SDK

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/2391654/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-19 14:29:10  来源:igfitidea点击:

Can't dispatch DDM chunk 46454154: no handler defined - Eclipse - Android SDK

androideclipseruntime-error

提问by jaywon

I'm working on a Windows 7, 64 bit machine, and just downloaded and installed the Android SDK and am using Eclipse with Android plugin.

我正在 Windows 7 64 位机器上工作,刚刚下载并安装了 Android SDK,并且正在使用带有 Android 插件的 Eclipse。

I was just going through the "Hello Android" guide here: Hello, Android

我刚刚在这里浏览了“你好 Android”指南: 你好,Android

I also did the suggestions on this page: Droid FAQ

我也做了这个页面上的建议:Droid FAQ

Before following the FAQ, the program would compile and run but wouldn't register with the emulator. No code changes, and now I get the following.

在遵循 FAQ 之前,程序会编译并运行,但不会在模拟器中注册。没有代码更改,现在我得到以下内容。

When I try to run the emulator, I get the following message:

当我尝试运行模拟器时,我收到以下消息:

[2010-03-05 20:48:41 - HelloAndroid]ActivityManager: Can't dispatch DDM chunk 46454154: no handler defined
[2010-03-05 20:48:41 - HelloAndroid]ActivityManager: Can't dispatch DDM chunk 4d505251: no handler defined
[2010-03-05 20:48:42 - HelloAndroid]ActivityManager: Starting: Intent { comp={domain.example.helloandroid/domain.example.helloandroid.HelloAndroid} }
[2010-03-05 20:48:42 - HelloAndroid]ActivityManager: Warning: Activity not started, its current task has been brought to the front

Any suggestions? Thanks!

有什么建议?谢谢!

回答by Steve Haley

I'm not sure what you mean by it wouldn't register with the emulator, but I get the exact same error messages every time I run a program. However, it hasn't stopped my programs from compiling and running on both my emulator and actual phone.

我不确定你的意思是它不会在模拟器中注册,但是每次运行程序时我都会收到完全相同的错误消息。但是,它并没有阻止我的程序在我的模拟器和实际手机上编译和运行。

(Edit: I should add that I'm compiling using Eclipse with both Android v1.5 and 2.1 installled, and those messages appear in LogCat when I run programs on my v1.5 emulator. Haven't checked with the v2.1)

(编辑:我应该补充一点,我正在使用 Eclipse 进行编译,同时安装了 Android v1.5 和 2.1,当我在 v1.5 模拟器上运行程序时,这些消息会出现在 LogCat 中。还没有检查 v2.1)

As for the second two lines in the error message, particularly the Activity not started, that's simply because you didn't change the code before trying to install it again. A simple fix for that is to remove a character (anything really) and then put it back in. That forces it to 'rebuild the workspace' when you save, which in turn forces it to reinstall on the emulator.

至于错误信息中的后两行,尤其是Activity not started,那只是因为您在尝试再次安装之前没有更改代码。一个简单的解决方法是删除一个角色(任何真的)然后把它放回去。这会在你保存时强制它“重建工作区”,这反过来又会迫使它在模拟器上重新安装。