Android的拍击MessageEventManager不编译 [英] Android Smack MessageEventManager not compiling

查看:367
本文介绍了Android的拍击MessageEventManager不编译的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用嫌API与Openfire的服务器,使Android应用程序。我想实现一个MessageEventManager和MessageEventProvider到我的应用程序,所以它会告诉我,如果邮件送达与否虽然当我尝试宣告它MessageEventManager,它没有编制,并告诉我创建一个类,我能做些什么?我在我的的gradle以下依存关系:

I am using smack API with openfire server to make an android app. I am trying to implement a MessageEventManager and MessageEventProvider 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'
}

我需要为它的一个额外的?我想AP preciate任何帮助,谢谢。

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

IMG:


推荐答案

好吧,我可能是错的,但现在看来,这是不包括在Smack4.1,我不知道它是德precated或不自我还没有看到它去precated列表和存在的文件<一个href=\"https://www.igniterealtime.org/builds/smack/docs/latest/javadoc/org/jivesoftware/smackx/xevent/MessageEventManager.html\"相对=nofollow>这里和<一个href=\"https://www.igniterealtime.org/builds/smack/docs/latest/javadoc/org/jivesoftware/smack/Manager.html\"相对=nofollow>这里父类。

Well, I might be wrong, but it seems it's not included in Smack4.1, I can't tell if it's deprecated or not since I haven't seen it on the deprecated lists, and the documentation exists here and here for the parent class.

不过......我确实发现是这因此受到拍击的作者回答,即明确指出,

But... what I did find is this SO answer by the Author of Smack, that clearly states that

消息事件通过了现已过时的XEP-22完成。这是一个很好的机会,对方没有实现这种过时的机制。

Message events in SMACK are done via the now obsolete XEP-22. There is a good chance that the other side does not implement this out-dated mechanism.

由于这是月3日年前,它可能是寻找另一种解决方案是一个好主意,或者(根据您的需要,可能不会推荐)使用旧版本拍击或aSmack。

Since this is dated 3 years back, it might be a good idea to look for another solution, or (depending on your needs, might not be recommended) use an older version Smack or aSmack.

这篇关于Android的拍击MessageEventManager不编译的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆