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

Make library androidx compatible my changing the package of CustomViewPager #174

Open
vedprakashwagh opened this issue Nov 12, 2018 · 3 comments
Milestone

Comments

@vedprakashwagh
Copy link

vedprakashwagh commented Nov 12, 2018

People who are facing this problem #169
For anyone getting errors while migrating to androidx, this library is androidx compatible, the way creator has added the class CustomViewPager into android.support.v4.view package confuses android studio while migrating. While migrating to androidx through the Refactor->Migrate to AndroidX, Android studio finds the package names of all the support dependencies and then converts them into their equivalent AndroidX package. So, as the CustomViewPager class is present in the android.support.v4.view support package, it converts that package name to androidx.customviewpager and then it's unable to find the class.
Simple FIX: Manually add the library by downloading it and then change the package name back to android.support.v4.view wherever CustomViewPager is used! Or author can just transfer the CustomViewPager into some different package that doesn't start with android.support

@bezmian bezmian added this to the 0.0.6 milestone Mar 18, 2019
@mohamedhamada1
Copy link

I face same issue

@saeidparvizi
Copy link

@DreierF tnx
I used
implementation 'io.github.dreierf:material-intro-screen:0.0.6'
and solve my problem

@NarzaryU
Copy link

He forked from here.

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

5 participants