Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

在某些手机上偶尔出现不能找到对应文件,这个是文件没有创建成功 #32

Open
chongxx opened this issue Sep 7, 2016 · 2 comments

Comments

@chongxx
Copy link

chongxx commented Sep 7, 2016

暂时知道的有红米,OPPO F1S
image

@chongxx chongxx changed the title 在某些手机上偶尔出现获取不到缓存数据 在某些手机上偶尔出现不能找到对应文件,这个是文件没有创建成功 Sep 9, 2016
@Arthurshen98
Copy link

是文件没创建成功,是没有sd卡吗,还是其他原因,有解决吗

@chongxx
Copy link
Author

chongxx commented Nov 17, 2016

@Arthurshen98 这是几个月前我遇到的问题了,原因是我的app在一次打开的生命周期里,开始创建了这个缓存的文件夹,中间被清理内存类的软件删除了这个文件夹,导致后来再存取就会失败,我的办法是在每次存取的时候都判断缓存的文件夹是否存在,else create cache dir

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants