1、The content of the adapter has changed but ListView did not receive a notification.
Make sure the content of your adapter is not modified from a background thread, but only from the UI thread.
Make sure your adapter calls notifyDataSetChanged() when its content changes
从提示可以看出 一种情况是后台线程修改了数据源 另一种是 内容发生变化了,但没有调用notifyDataSetChanged 我是第二种情况
2、Gson 数据解析时 尽量用
VersionInfo versionInfo1 = gson.fromJson(versionInfo, new TypeToken<VersionInfo>() {}.getType());
而不是 VersionInfo versionInfo1 = gson.fromJson(versionInfo,VersionInfo.class ); 因为后者的解析格式要求更为严格 某些机型会报异常