Sunday, August 29, 2010

Uses Library missing in AndroidManifest.xml

Error:
[2010-08-29 11:38:04 - ddms]null
java.lang.NullPointerException
at com.android.ddmlib.JdwpPacket.writeAndConsume(Unknown Source)
at com.android.ddmlib.Client.sendAndConsume(Unknown Source)
at com.android.ddmlib.HandleHello.sendHELO(Unknown Source)
at com.android.ddmlib.HandleHello.sendHelloCommands(Unknown Source)
at com.android.ddmlib.Client.getJdwpPacket(Unknown Source)
at com.android.ddmlib.MonitorThread.processClientActivity(Unknown Source)
at com.android.ddmlib.MonitorThread.run(Unknown Source)

[2010-08-29 11:38:04 - ddms]null
java.lang.NullPointerException
at com.android.ddmlib.JdwpPacket.writeAndConsume(Unknown Source)
at com.android.ddmlib.Client.sendAndConsume(Unknown Source)
at com.android.ddmlib.HandleHello.sendHELO(Unknown Source)
at com.android.ddmlib.HandleHello.sendHelloCommands(Unknown Source)
at com.android.ddmlib.Client.getJdwpPacket(Unknown Source)
at com.android.ddmlib.MonitorThread.processClientActivity(Unknown Source)
at com.android.ddmlib.MonitorThread.run(Unknown Source)


Reason:
There are some library missing and have not been included in the AndroidManifest.xml file.

Fix:
Include the library in the AndroidManifest.xml file as a child element in element. for e.g. if you want to use GoogleMaps application in your application then make sure to add following child element in the element in the AndroidManifest.xml file,





if you do not add the above, then emulator would give you error and your app would not open.

2 comments:

  1. Good information about android app yes very nice technology, Android application now booms in technology mobile application plays a key role in it.The Android SDK, J2ME, Eclipse are the technologies used for android app development.

    ReplyDelete
  2. Your passion for Oracle is contagious! Your enthusiasm makes learning about these technologies enjoyable and engaging. Fusion Financial Training In Hyderaba

    ReplyDelete