I’m unable to connect using XMPPTCPConnection.connect() of Smack 4.1.0 It says invalid-namespace

Here is Smack debug log:

SENT (0): <stream:stream xmlns=‘jabber:client’ to=‘’ xmlns:stream=‘’ version=‘1.0’ xml:lang=‘en’>

RECV (0): <?xml version='1.0'?><stream:stream xmlns=‘jabber:client:simplified’ xmlns:stream=‘’ id=‘imp-error-imp’ from=‘rcs2’ version=‘1.0’ xml:lang=‘en’>stream:error</stream:error></stream:stream>

It was successful with an old version of ASmack. It sent ‘jabber:client:simplified’ namespace.

Is there any way to manage namespace?

It seams the server waits for ‘jabber:client:simplified’ namespace, but Smack has a hardcoded ‘jabber:client’ string…

I wander why ASmack was ok.