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

后端 未结 3 975
礼貌的吻别
礼貌的吻别 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:23

    I think JmDNS developers may have some issues regarding to publish/maintain their release and what even worse is poor documented, you can download jar from both SourceForge home page and Maven central repo, however, you can see that the jar file for the same release (latest version is 3.4.1) are different, the one from Maven central repository is more clean, probably this is what Heeere talked in his page about rejaring. I always use Maven build my Android application and so never tried the one from SourceForge, however, jar file downloaded from Maven works for me.

提交回复
热议问题