为什么adMob会在Android中抛出这些空指针异常?

时间:2011-09-02 04:33:06

标签: android nullpointerexception admob

所以我已经完成了Android应用程序和所有内容,然后我从adMob下载了SDK并将其集成到应用程序中。整合广告后,我注意到每次运行应用时,此异常都会在控制台中显示出来。

[2011-09-01 22:25:21 - ddms]null
java.lang.NullPointerException
    at com.android.ddmlib.Client.sendAndConsume(Client.java:572)
    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:671)
    at com.android.ddmlib.MonitorThread.processClientActivity(MonitorThread.java:317)
    at com.android.ddmlib.MonitorThread.run(MonitorThread.java:263)

[2011-09-01 22:25:21 - ddms]null
java.lang.NullPointerException
    at com.android.ddmlib.Client.sendAndConsume(Client.java:572)
    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:671)
    at com.android.ddmlib.MonitorThread.processClientActivity(MonitorThread.java:317)
    at com.android.ddmlib.MonitorThread.run(MonitorThread.java:263)

该应用不会崩溃或任何事情,广告显示正常并且正常工作,但此异常不断出现。为什么?我怎么能摆脱它?在此先感谢: - )

1 个答案:

答案 0 :(得分:0)

最后,它是一个简单的日志AdMob,从其代码中执行。没什么不寻常的。