powered by Jive Software

Android Smack MessageEventManager not compiling

I am using smack API with openfire server to make an android app. I am trying to implement a MessageEventManager to my app so it will tell me if the message was delivered or not though when i try to declare it a MessageEventManager, it is not compiling and tells me to create that class, What can i do? i have the following dependencies in my gradle:

dependencies { compile fileTree(include: ['*.jar'], dir: 'libs') compile 'com.android.support:appcompat-v7:22.1.1' compile 'org.igniterealtime.smack:smack-android:4.1.0-rc1' compile 'org.igniterealtime.smack:smack-tcp:4.1.0-rc1' compile 'org.igniterealtime.smack:smack-im:4.1.0-rc1' compile 'org.igniterealtime.smack:smack-extensions:4.1.0-rc1'

compile 'org.igniterealtime.smack:smack-android-extensions:4.1.0-rc1'

}

Do i need an extra dependency for it? I would appreciate any help Thanks.

Yes u need to add one more dependency

compile ‘org.igniterealtime.smack:smack-legacy:4.1.0’