错误:显示java.lang.NullPointerException在机器人 [英] Error:java.lang.NullPointerException in android

查看:122
本文介绍了错误:显示java.lang.NullPointerException在机器人的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

[2011-02-18 23点41分十六秒 - DDMS]空

[2011-02-18 23:41:16 - ddms]null

显示java.lang.NullPointerException

java.lang.NullPointerException

at com.android.ddmlib.Client.sendAndConsume(Client.java:571)
at com.android.ddmlib.HandleHello.sendHELO(HandleHello.java:142)
at com.android.ddmlib.HandleHello.sendHelloCommands(HandleHello.java:65)
at com.android.ddmlib.Client.getJdwpPacket(Client.java:670)
at com.android.ddmlib.MonitorThread.processClientActivity(MonitorThread.java:317)
at com.android.ddmlib.MonitorThread.run(MonitorThread.java:263)

什么样的​​错误是this..All XML文件有错误突然像下面。

What kind of error is this..All xml files are having error suddenly like below..

Multiple annotations found at this line:
- Premature end of file.
- error: Error parsing XML: no 
 element found

感谢您,

推荐答案

第一类错误通常意味着有一个在DDMS,并已解雇了仿真器之间的通信有问题。我发现这些错误是一般是无害的。

The first group of errors generally mean that there's a problem in the communication between ddms and the emulator you have fired up. I've found those errors to be generally harmless.

中的XML错误听起来像是你应该重新启动Eclipse(如果你使用的是什么),否则清除项目。得到的东西不同步。 (如果问题仍然存在,张贴的发电错误的XML的例子。)

The XML errors sound like you should restart Eclipse (if that's what you're using), or else clean your project. Something got out of sync. (If the problem persists, post an example of the XML that's generating the errors.)

这篇关于错误:显示java.lang.NullPointerException在机器人的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆