Android Exception: 'java.lang.NoClassDefFoundError: javax.jmdns.JmDNS'

后端 未结 3 976
礼貌的吻别
礼貌的吻别 2020-12-21 07:22

Hopefully my issue isn\'t too silly but I\'m having the following problem...

I\'m importing a jar which contains the library JmDNS into my project. My p

3条回答
  •  我在风中等你
    2020-12-21 07:44

    One way that you could go around adding the jar file would be to take the source code from the JmDNS.jar file and add it directly to your project. I was having a issue similar to yours where I could not get my Android application to properly work with the JmDNS.jar file from SourceForge or Maven. I just took all of the source files from jar file, added them to my Eclipse project, built it, and it works like a charm.

    I don't know if this would be a long term solution that you would want to use, but this solution worked for me.

提交回复
热议问题