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

点击预览图崩溃,报空指针异常 #73

Open
clbDream opened this issue Apr 10, 2020 · 3 comments
Open

点击预览图崩溃,报空指针异常 #73

clbDream opened this issue Apr 10, 2020 · 3 comments

Comments

@clbDream
Copy link

 Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'void androidx.viewpager.widget.ViewPager.setAdapter(androidx.viewpager.widget.PagerAdapter)' on a null object reference
    at com.lzy.ninegrid.preview.ImagePreviewActivity.onCreate(ImagePreviewActivity.java:58)
    at android.app.Activity.performCreate(Activity.java:7802)
    at android.app.Activity.performCreate(Activity.java:7791)
    at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1299)
@mjl1564159881
Copy link

我跟你的一样

@Jack-bin183
Copy link

同求解 一样的代码在另一个APP里面正常 就离谱

@Jack-bin183
Copy link

解决了 把库拉到本地 然后手动迁移到安卓x 具体是啥原因不清楚

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