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

java.lang.NullPointerException: on a null object reference #8

Closed
Ketty0725 opened this issue Nov 17, 2022 · 3 comments
Closed

java.lang.NullPointerException: on a null object reference #8

Ketty0725 opened this issue Nov 17, 2022 · 3 comments

Comments

@Ketty0725
Copy link

java.lang.NullPointerException: Attempt to invoke virtual method 'void com.roger.gifloadinglibrary.GifLoadingView.setImageResource(int)' on a null object reference
依赖方法都对,图片用你源码里的

@Rogero0o
Copy link
Owner

你的 GifLoadingView 为空?

@Ketty0725
Copy link
Author

gradle加依赖和导module都是这个报空
Dingtalk_20221117105158
Dingtalk_20221117105318

@Rogero0o
Copy link
Owner

mGifLoadingView = new GifLoadingView();
Activity 20 行下面加上这句就行了

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