注册

java.util.ConcurrentModificationException


java.util.ConcurrentModificationException at java.util.ArrayList$ArrayListIterator.next(ArrayList.java:573) at com.hyphenate.chat.EMClient$MyConnectionListener$2.run(Unknown Source) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588) at java.lang.Thread.run(Thread.java:833)
 
已邀请:
该怎么解决

陈日明 - 90后IT男

麻烦贴出报错代码
java.util.ConcurrentModificationException
2.4.01 20 天前 2018-05-17 16:20:36 80
java.util.ConcurrentModificationException
2.4.01 20 天前 2018-05-17 15:47:06 25
java.util.ConcurrentModificationException
2.4.00 3 个月前 2018-05-17 15:52:34 15
java.util.ConcurrentModificationException
2.4.01 20 天前 2018-05-17 15:49:55 11
java.util.ConcurrentModificationException
2.4.00 3 个月前 2018-05-17 15:32:56 4
isConflictDialogShow = true; PreferenceUtils.saveBoolean(this, IConstants.HAVE_UN_READ_MESSAGE, false); DemoHelper.getInstance().logout(false, null); if (!MainActivity.this.isFinishing()) { // clear up global variables try { if (conflictBuilder == null) conflictBuilder = new android.app.AlertDialog.Builder(MainActivity.this); conflictBuilder.setTitle("账号异常"); conflictBuilder.setMessage("您的账号已在其他设备登录,请重新登录!"); conflictBuilder.setPositiveButton(R.string.ok, new DialogInterface .OnClickListener() { @Override public void onClick(DialogInterface dialog, int which) { dialog.dismiss(); conflictBuilder = null; SPUtils.saveString(MainActivity.this, IConstants.USER_PORTARIT, ""); HshbApplication.getInstance().setLogin(false); HshbApplication.getInstance().setUserId(""); PreferenceUtils.saveObject(MainActivity.this, IConstants.LOGININFO, ""); PreferenceUtils.saveInt(MainActivity.this, IConstants.USER_TYPE, 0); finish(); Intent intent = new Intent(MainActivity.this, LoginActivity.class); intent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TASK | Intent .FLAG_ACTIVITY_NEW_TASK); startActivity(intent); } }); conflictBuilder.setCancelable(false); conflictBuilder.create().show(); isConflict = true;
 

要回复问题请先登录注册