kavuru
kavuru

Reputation: 379

login method is not recognised in xmpp

I am trying to connect to openfire server with smack library in android. but getting error in login method.

public void performLogin(String username, String password) throws XMPPException {
        if (connection!=null && connection.isConnected()) {
            connection.login(username, password);
        }
    }

error is

The method login(String, String) from the type XMPPConnection refers to the missing type SaslException

what is the issue here?

Upvotes: 0

Views: 301

Answers (1)

Flow
Flow

Reputation: 24083

Smack 4.0 does not work on Android, use aSmack 4.0.

Smack 4.1 will run on Android, but isn't released yet.

Upvotes: 0

Related Questions