AnsweredAssumed Answered

android 5.0 and smack 4.1.4 error

Question asked by sun on Sep 18, 2015
Latest reply on Sep 21, 2015 by sun

when i use smack 4.1.4 on android 5.0,i have a problem

 

 

Verification of java.util.List org.jivesoftware.smack.util.dns.javax.JavaxResolver.lookupSRVRecords(java.lang. String)

java.lang.NoClassDefFoundError: Failed resolution of: Ljavax/naming/directory/InitialDirContext;

at org.jivesoftware.smack.util.dns.javax.JavaxResolver.<clinit>(JavaxResolver.java :50)

 

compile files('libs/smack-android-4.1.4.jar')

compile files('libs/smack-android-4.1.4-sources.jar')

compile files('libs/smack-android-extensions-4.1.4.jar')

compile files('libs/smack-android-extensions-4.1.4-sources.jar')

compile files('libs/smack-bosh-4.1.4.jar')

compile files('libs/smack-bosh-4.1.4-sources.jar')

compile files('libs/smack-compression-jzlib-4.1.4.jar')

compile files('libs/smack-core-4.1.4.jar')

compile files('libs/smack-debug-4.1.4.jar')

compile files('libs/smack-debug-slf4j-4.1.4.jar')

compile files('libs/smack-experimental-4.1.4.jar')

compile files('libs/smack-extensions-4.1.4.jar')

compile files('libs/smack-im-4.1.4.jar')

compile files('libs/smack-jingle-old-4.1.4.jar')

compile files('libs/smack-resolver-javax-4.1.4.jar')

compile files('libs/smack-legacy-4.1.4.jar')

compile files('libs/smack-sasl-provided-4.1.4.jar')

compile files('libs/smack-tcp-4.1.4.jar')

 

at here ,it ok for android 4.4 and 4.1

java.lang.ClassNotFoundException: javax.naming.directory.InitialDirContext in Android

not ok for android 5.0

 

anybody is same?

Outcomes