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

网络拦截库用不了 #8

Open
1040322934 opened this issue Dec 3, 2020 · 2 comments
Open

网络拦截库用不了 #8

1040322934 opened this issue Dec 3, 2020 · 2 comments

Comments

@1040322934
Copy link

Attempt to invoke virtual method 'java.lang.Object android.content.Context.getSystemService(java.lang.String)' on a null object reference

在NetDeviceUtils的getAvailMemory方法下

@xiaozhi805157387
Copy link

他少写了一些代码,在 NetworkTool.getInstance().setFloat(this) 先要init传入context初始化

@df13954
Copy link

df13954 commented Jan 6, 2021

他少写了一些代码,在 NetworkTool.getInstance().setFloat(this) 先要init传入context初始化

NetworkTool.getInstance().init(this);
demo中先调用了这个,才float的。

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

3 participants