powered by Jive Software

Smack4.2.1 crash on android4.4


#1

What minSdkVersion does Smack4.2.1 support?

10-23 17:30:55.955 20544-20705/yy.im I/dalvikvm: Could not find method javax.security.sasl.Sasl.createSaslClient, referenced from method org.jivesoftware.smack.sasl.javax.SASLJavaXMechanism.authenticateInternal
10-23 17:30:55.955 20544-20705/yy.im W/dalvikvm: VFY: unable to resolve static method 31252: Ljavax/security/sasl/Sasl;.createSaslClient ([Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/util/Map;Ljavax/security/auth/callback/CallbackHandler;)Ljavax/security/sasl/SaslClient;
10-23 17:30:55.960 20544-20705/yy.im W/dalvikvm: VFY: unable to resolve exception class 4177 (Ljavax/security/sasl/SaslException;)
10-23 17:30:55.960 20544-20705/yy.im W/dalvikvm: VFY: unable to find exception handler at addr 0x2f
10-23 17:30:55.960 20544-20705/yy.im W/dalvikvm: VFY: rejected Lorg/jivesoftware/smack/sasl/javax/SASLJavaXMechanism;.authenticateInternal ()V
10-23 17:30:55.960 20544-20705/yy.im W/dalvikvm: VFY: rejecting opcode 0x0d at 0x002f
10-23 17:30:55.960 20544-20705/yy.im W/dalvikvm: VFY: rejected Lorg/jivesoftware/smack/sasl/javax/SASLJavaXMechanism;.authenticateInternal ()V
10-23 17:30:55.960 20544-20705/yy.im W/dalvikvm: Verifier rejected class Lorg/jivesoftware/smack/sasl/javax/SASLJavaXMechanism;
10-23 17:30:55.960 20544-20705/yy.im W/dalvikvm: Exception Ljava/lang/VerifyError; thrown while initializing Lorg/jivesoftware/smack/SmackInitialization;
10-23 17:30:55.960 20544-20705/yy.im W/dalvikvm: Exception Ljava/lang/VerifyError; thrown while initializing Lorg/jivesoftware/smack/ConnectionConfiguration;
10-23 17:30:55.960 20544-20705/yy.im W/dalvikvm: threadid=17: thread exiting with uncaught exception (group=0x41971c68)

10-23 17:30:55.960 20544-20705/ldu.guofeng.imdemo W/dalvikvm: Exception Ljava/lang/VerifyError; thrown while initializing Lorg/jivesoftware/smack/ConnectionConfiguration;
10-23 17:30:55.960 20544-20705/ldu.guofeng.imdemo W/dalvikvm: threadid=17: thread exiting with uncaught exception (group=0x41971c68)


#2

Did you follow the instructions in the Smack Readme?