PageIndicatorView icon indicating copy to clipboard operation
PageIndicatorView copied to clipboard

Version 1.0.3 incompatible without AndroidX library

Open pecet66 opened this issue 6 years ago • 8 comments

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.

pecet66 avatar Nov 19 '18 13:11 pecet66

Same error here

danielbeltrami89 avatar Nov 20 '18 17:11 danielbeltrami89

That's the point. Use 1.0.3 when you 'll have converted your project to androidX

Toubap avatar Nov 22 '18 09:11 Toubap

Same error

dbof10 avatar Nov 22 '18 14:11 dbof10

use implementation 'com.romandanylyk:pageindicatorview:1.0.0@aar'

flipnovidade avatar Dec 11 '18 01:12 flipnovidade

@flipnovidade thank you very much for response.

coskungun avatar Jan 07 '19 10:01 coskungun

I got same error But thanks to @flipnovidade it works perfectly

akardas16 avatar Mar 07 '19 17:03 akardas16

@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'

pecet66 avatar Mar 10 '19 13:03 pecet66

Close this issue please.

gabriel-TheCode avatar Jul 05 '19 00:07 gabriel-TheCode