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

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

    This might be happening as the class is not loaded yet. Class clazz = getClassLoader().loadClass("javax.jmdns.JmDNS"); Then use reflection to create instance of object of type clazz

提交回复
热议问题