android studio 测试APP不要全部覆盖安装

    今天在调试一个APP的时候 老是提示在mainThread操作网络,反复查看多次几乎确定没有在主线程中操作网络,提示的代码行也并不存在对网络的操作,还有什么break;之类的行,本来从网络解析的xml应该也有8跳,也只解析出有问题的6条,后来忽然想到把模拟器的APP卸载后重新安装再行测试,没想到所有的问题一下就都解决了,原来调试都是覆盖安装的,可能是覆盖不完整导致了这种,未调试好的APP出现的异常一直遗留未被刷新的情况,以后要注意,有奇怪的问题就把原APP卸载重新安装再行测试,谨记.


08-22 19:35:19.537 16959-16959/com.longforus.test.a07_newsclient W/onclick: run  OK
08-22 19:35:19.538 16959-17094/com.longforus.test.a07_newsclient W/onThread: run
08-22 19:35:19.571 16959-16959/com.longforus.test.a07_newsclient W/onhandler: run  OK
08-22 19:35:19.572 16959-17094/com.longforus.test.a07_newsclient W/onThread: run  OK
08-22 19:35:19.585 16959-16959/com.longforus.test.a07_newsclient W/onAdapter: run
08-22 19:35:19.656 16959-16959/com.longforus.test.a07_newsclient W/onAdapter: run
08-22 19:35:19.659 16959-16959/com.longforus.test.a07_newsclient W/onAdapter: run
08-22 19:35:19.667 16959-16959/com.longforus.test.a07_newsclient W/onAdapter: run
08-22 19:35:19.674 16959-16959/com.longforus.test.a07_newsclient W/onAdapter: run
08-22 19:35:19.677 16959-16959/com.longforus.test.a07_newsclient W/onAdapter: run
08-22 19:35:21.436 16959-16959/com.longforus.test.a07_newsclient W/onAdapter: run
08-22 19:35:21.470 16959-16959/com.longforus.test.a07_newsclient W/onAdapter: run


你可能感兴趣的:(随笔,android,studio,android)