Could not find class 'org.xbill.DNS.Lookup'

while first time to use smack 4.1.1 to make my im project ,while run :

mConnection.connect();

it throws :

Could not find class ‘org.xbill.DNS.Lookup’, referenced from method org.jivesoftware.smack.util.dns.dnsjava.DNSJavaResolver.lookupSRVRecords

in my app, i add these libs:

-jxmpp-core-0.3.0

-jxmpp-jid-0.5.0-alpha2

-jxmpp-util-cache-0.5.0-alpha2

-smack-android-4.1.0

-smack-android-extensions-4.1.0

-smack-core-4.1.0

-smack-experimental-4.1.0

-smack-extensions-4.1.0

-smack-resolver-dnsjava-4.1.0

-smack-tcp-4.1.0

somebody could help me, thks~!

from the list of jar files I can say that you are not using smack 4.1.1

please download

-smack-xxxxxxx-4.1.1 files and

-jxmpp-xxxxxxx-0.4.2-beta1 files

remove “dnsjava” and use “minidns”

with files

xpp3-1.1.4c.jar

minidns-0.1.7.jar

smack-resolver-minidns-4.1.1.jar

hope it helps

1 Like