powered by Jive Software

Cannot create FileTransferManager object

I am trying to implement file transfer in my project but cannot create FileTransferManager object it says:

FileTransferManager (org.jivesoftware.smack.Connection) in FileTransferManager cannot be applied to (org.jivesoftware.smack.tcp.XMPPTCPConnection)

Here is my code:

FileTransferManager manager = new FileTransferManager(connection); // Where connection is an object of XMPPTCPConnection

Use FileTransferManager.getInstanceFor().

Oops wrong library. I was using smackx instead of smack-extentions. Thanks