-
Notifications
You must be signed in to change notification settings - Fork 665
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
"ViewPager" not found error when project migrated to AndroidX #46
Comments
Did you find any solution for this error? |
This is a problem that can be solved simply by changing the "import android.support.v4.view.ViewPager" to "import androidx.viewpager.widget.ViewPager". And "import android.support.v4.view.PagerAdapter" to "import androidx.viewpager.widget.PagerAdapter". |
If you are still facing the same issue then instead of implementing the library just copy |
I've created kotlin version of this library and there AndroidX is supported. |
@pzienowicz Thanks for giving it a new life. I have linked to your library url in ReadMe |
When I migrated my project to AndroidX it seems that "ViewPager" is not correctly referenced. When I separately try to create a ViewPager it's being referenced from "androidx.viewpager.widget", whereas in your library it is still referred from the support library as it pertains to the normal libraries and not AndroidX. Please provide an update or atleast a fix for this ASAP.
The text was updated successfully, but these errors were encountered: