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

Error inflating class com.daimajia.slider.library.SliderLayout #432

Open
varundhuria opened this issue Nov 5, 2020 · 2 comments
Open

Error inflating class com.daimajia.slider.library.SliderLayout #432

varundhuria opened this issue Nov 5, 2020 · 2 comments

Comments

@varundhuria
Copy link

I have been trying to inflate this SliderLayout in a Fragment. I am getting this error. So please help me to resolve this error.
Binary XML file line #8 in : Error inflating class com.daimajia.slider.library.SliderLayout
Caused by: java.lang.reflect.InvocationTargetException
Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'void com.daimajia.slider.library.Tricks.InfiniteViewPager.setAdapter(androidx.viewpager.widget.PagerAdapter)' on a null object reference

@imafzalakram
Copy link

@varundhuria did you find the solution to above issue? I'm getting the same issue

@sakshi5724
Copy link

Migrate your project with AndroidX then Invalidate and restart Android Studio
It solved my problem

android.useAndroidX=true
android.enableJetifier=true

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