注册

创建群组的时候出现异常

EMGroupOptions option = new EMGroupOptions();
option.maxUsers = 500;
option.inviteNeedConfirm = true;
option.style = EMGroupManager.EMGroupStyle.EMGroupStylePrivateMemberCanInvite;
String reason = getString(R.string.em_group_new_invite_join_group, EaseConstant.EXTRA_CONVERSATION_ID, "渣渣灰");

try {
EMClient.getInstance().groupManager().createGroup("群聊", names, listName, reason, option);
} catch (HyphenateException e) {
e.printStackTrace();
}
 com.hyphenate.exceptions.HyphenateException: Unknown server error


已邀请:

网络有没有问题?

放到子线程中试下

要回复问题请先登录注册