错误一览表

错误一:

Activity com.example.useLocalService.newAct has leaked ServiceConnection com.example.useLocalService.newAct$1@2185f770 that was originally bound here

出现这个错误是在调试Service中出现的出现的,出现时机为按返回键再打开应用

出错原因解析:service没有自我结束服务,也没有被Activity解除绑定.造成内存泄露.

解决方案:在onDestroy中调用stopSelf();

错误二:

在android4.0的手机上直接创建某个文件的路径一直报这个错:open failed: ENOENT (No such file or directory).

解决方案

先建立文件夹再建立文件

原文地址:https://www.cnblogs.com/lingzhishitu/p/4467015.html