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

调用 getSize 闪退 #14

Open
jun-lu opened this issue Feb 4, 2017 · 1 comment
Open

调用 getSize 闪退 #14

jun-lu opened this issue Feb 4, 2017 · 1 comment

Comments

@jun-lu
Copy link

jun-lu commented Feb 4, 2017

在没有发起任何请求之前,单纯调用 getSize 会直接闪退。

@kerwin-ly
Copy link

public void getHttpCacheSize(Promise promise){ try { Cache cache = OkHttpClientProvider.getOkHttpClient().cache(); promise.resolve(cache != null ? ((double)cache.size()) : 0); } catch(IOException e){ promise.reject(e); } }
源码是这么写的,那应该调用getHttpCacheSize()了吧

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