powered by Jive Software

PubSubManager() cannot be instantiated


I am trying to develop an android app that communicates with a server with PubSub

When I try to instanciate a PubSubManager I get the follwoing Message:

The constructor PubSubManager(XMPPConnection) is undefined

When I then change

XMPP connection = new XMPPConnection(connConfig);


Connection connection = new XMPPConnection(connConfig);

I get

cannot convert XMPPConnection to Connection

What do I have to change

Thanks for your help

Which version of aSmack are you using?

I use the version 4.0.0 but I also tried it with other version. But it did not work