Smack 4.2.0-beta1 Error in creating group chat 'MultiUserChat. Cannot be accessed from outside package
<p>I am developing Chat application. I have done one to one chat. But I cannot create Group chat because it shows an below error</p>

<pre><code>    'MultiUserChat(org.jivesoftware.smack.XMPPConnection, org.jxmpp.jid.EntityBareJid, org.jivesoftware.smackx.muc.MultiUserChatManager)' is not public in 'org.jivesoftware.smackx.muc.MultiUserChat'. 
Cannot be accessed from outside package
</code></pre>

<p>I have seen some answers about creating groups everyone using <code>multiUserChat = new MultiUserChat(connection,room_name);</code> to create a Group chat.</p>

<p>But in 4.2.0-beta1 version is not allowing us to access this class.</p>

<p>I have added my code below</p>

<pre><code> public void createGroupChat() {
            // Create a MultiUserChat using a Connection for a room
    // (room name as the second parameter)
            try {
                Resourcepart nikname = Resourcepart.from("admin");

                MultiUserChat mMultiUserChat = new MultiUserChat(connection, "room@conference.myserver");
                mMultiUserChat.create(nikname);
                Form form = mMultiUserChat.getConfigurationForm().createAnswerForm();
                form.setAnswer("muc#roomconfig_publicroom", true);
                form.setAnswer("muc#roomconfig_roomname", "room");
                form.setAnswer("muc#roomconfig_roomowners", "owner");
                form.setAnswer("muc#roomconfig_persistentroom", true);
                mMultiUserChat.sendConfigurationForm(form);
            } catch (XmppStringprepException e) {
                e.printStackTrace();
            } catch (MultiUserChatException.MucAlreadyJoinedException e) {
                e.printStackTrace();
            } catch (InterruptedException e) {
                e.printStackTrace();
            } catch (XMPPException.XMPPErrorException e) {
                e.printStackTrace();
            } catch (MultiUserChatException.MissingMucCreationAcknowledgeException e) {
                e.printStackTrace();
            } catch (NotConnectedException e) {
                e.printStackTrace();
            } catch (SmackException.NoResponseException e) {
                e.printStackTrace();
            } catch (MultiUserChatException.NotAMucServiceException e) {
                e.printStackTrace();
            }
        }
</code></pre>

<p>Can anyone tell me how to create group in Latest smack 4.2.0-beta1 version?</p>

<p>If I asked anything wrong sorry for that. </p>