java.lang.IllegalStateException: No DNS Resolver active in Smack
at org.jivesoftware.smack.util.DNSUtil.resolveDomain(DNSUtil.java:169)
at org.jivesoftware.smack.util.DNSUtil.resolveXMPPServiceDomain(DNSUtil.java:136)
That is strange. The error you are seeing usually indicates that users either forget to include smack-java7 or smack-android.
smakc-android depends on smack-resolver-minidns, which, if its in your classpath, should be detected by Smack’s initialization routine and set the MiniDNS resolver.
Could you check that you have smack-resolver-minidns in your projects dependencies?
Calling MiniDnsResolver.setup fixes the issue, it resolves the domain now. Thanks for the help by the way.Could you shed some light as to why this is ?
Smack’s initialization routine should setup a resolver if one is available. You should never need to call it manually. It is impossible to tell from a distance why this doesn’t work in your case…
I’ll keep using it this way for the moment, may be it has something to do with how my project is setup, will investigate more when I have more time resources. For now , this issue should be considered resolved I guess.