【发布时间】:2014-05-07 02:33:27
【问题描述】:
我尝试使用 Smack 库,但我得到的只是:
05-07 04:28:43.299 2958-2958/g.d.allinonechat E/dalvikvm﹕ Could not find class 'javax.naming.directory.InitialDirContext', referenced from method org.jivesoftware.smack.util.dns.JavaxResolver.<clinit>
在 Google 上搜索后我发现,Google 不允许某些 JRE 类在 Android 上运行,所以..这里无事可做
试过aSmack,我用的是windows,试过在Linux Ubuntu上编译,但编译不出来
./build.bash line 142 /root/Desktop/asmack-master/version-tags/4.0.0-rc2-SNAPSHOT-2014-04-27.tag: No such file or directory
该文件不存在,但我尝试下载两次压缩文件,它不存在,也不是动态生成的。
还有其他库可以用来连接我的 Openfire 服务器吗?
谢谢。
【问题讨论】:
-
将你的 asmack 库放在 libs 文件夹中并清理你的项目然后尝试。
-
我试过了,但没用
标签: java android xmpp openfire smack