search

Home  >  Q&A  >  body text

android相关问题 - android开发中SAX解析的问题

天蓬老师天蓬老师2837 days ago818

reply all(2)I'll reply

  • PHP中文网

    PHP中文网2017-04-17 17:14:56

    Is ContentHandler your custom class? If so, see if your custom class has an empty constructor. The error message should already be obvious.

    reply
    0
  • ringa_lee

    ringa_lee2017-04-17 17:14:56

    XMLReader.setContentHandler(new DefaultHandler() {...}) requires DefaultHandler as a processing parameter. The ContentHandler in the original code must be inherited from DefaultHandler. You did not copy the ContentHandler code

    reply
    0
  • Cancelreply