PageIndicatorView
PageIndicatorView copied to clipboard
Version 1.0.3 incompatible without AndroidX library
AndroidX maps the original support library API packages into the androidx namespace. Probably because of this, if you do not implement Android Architecture Components in your project, and try to use view pager indicator, you'll get exception:
android.view.InflateException: Binary XML file line #25: Binary XML file line #25: Error inflating class com.rd.PageIndicatorView Caused by: android.view.InflateException: Binary XML file line #25: Error inflating class com.rd.PageIndicatorView Caused by: java.lang.ClassNotFoundException: Didn't find class "com.rd.PageIndicatorView" on path: DexPathList[[zip file
(...)
Caused by: java.lang.ClassNotFoundException: Didn't find class "androidx.viewpager.widget.ViewPager$OnPageChangeListener" on path: DexPathList
(...)
For me, latest working version on projects without android X dependency is 1.0.2.
Same error here
That's the point. Use 1.0.3 when you 'll have converted your project to androidX
Same error
use implementation 'com.romandanylyk:pageindicatorview:1.0.0@aar'
@flipnovidade thank you very much for response.
I got same error But thanks to @flipnovidade it works perfectly
@akardas16 As I stated in the first post, the latest working version is 1.0.2. :) So it's the best to import lib like this:
implementation 'com.romandanylyk:pageindicatorview:1.0.2@aar'
Close this issue please.