ConnectionException when trying to connect to XMPP server from aSmack Android client

后端 未结 5 591
礼貌的吻别
礼貌的吻别 2020-12-04 02:48

I have been trying to connect to my (locally hosted) Openfire XMPP server from my aSmack Android client for hours now, and it\'s still not working.

I get a org

5条回答
  •  情书的邮戳
    2020-12-04 03:45

    **XMPPTCPConnection connection is already configured so please check the connection before creating object of XMPPTCPConnection class.**
    
    XMPPTCPConnection  connection;
     if (connection != null) {
    connection = null;//make it null 
      }
    connection = new XMPPTCPConnection(config.build());
    
    I am getting this same problem but now it has been fixed try it is working.
    

提交回复
热议问题