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

Not compatible with AndroidX #169

Open
frapeti opened this issue Aug 18, 2018 · 11 comments
Open

Not compatible with AndroidX #169

frapeti opened this issue Aug 18, 2018 · 11 comments
Milestone

Comments

@frapeti
Copy link

frapeti commented Aug 18, 2018

java.lang.IllegalAccessError: Method 'void androidx.viewpager.widget.PagerAdapter.setViewPagerObserver(android.database.DataSetObserver)' is inaccessible to class 'androidx.core.view.CustomViewPager' (declaration of 'androidx.core.view.CustomViewPager' appears in /data/app/com.myapp-kpPRJwiysP3ALIy5WkActg==/base.apk!classes2.dex)
at androidx.core.view.CustomViewPager.setAdapter(CustomViewPager.java:530)
at agency.tango.materialintroscreen.MaterialIntroActivity.onCreate(MaterialIntroActivity.java:94)

@SpeedFire0
Copy link

Confirm that!

2018-08-28 10:21:31.580 11301-11301/ru.speedfire.flycontrolcenter E/AndroidRuntime: FATAL EXCEPTION: main
Process: ru.speedfire.flycontrolcenter, PID: 11301
java.lang.IllegalAccessError: Method 'void androidx.viewpager.widget.PagerAdapter.setViewPagerObserver(android.database.DataSetObserver)' is inaccessible to class 'androidx.core.view.CustomViewPager' (declaration of 'androidx.core.view.CustomViewPager' appears in /data/app/ru.speedfire.flycontrolcenter-A3lZfc55BE8x8n96VqR1rQ==/split_lib_slice_0_apk.apk)
at androidx.core.view.CustomViewPager.setAdapter(CustomViewPager.java:530)
at agency.tango.materialintroscreen.MaterialIntroActivity.onCreate(MaterialIntroActivity.java:94)
at ru.speedfire.flycontrolcenter.intro.IntroActivity.onCreate(IntroActivity.java:33)
at android.app.Activity.performCreate(Activity.java:7009)
at android.app.Activity.performCreate(Activity.java:7000)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1214)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2731)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2856)
at android.app.ActivityThread.-wrap11(Unknown Source:0)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1589)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loop(Looper.java:164)
at android.app.ActivityThread.main(ActivityThread.java:6494)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:438)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:807)

@SpeedFire0
Copy link

It seems that this library is not supported anymore.
I've changed my intro screen to this one https://github.com/apl-devs/AppIntro
It's AndroidX compatible.

@vedprakashwagh
Copy link

Yes this library is androidx compatible, the way he's added the class CustomViewPager into android.support.v4.view package makes android studio confuses the android studio while migrating, simple fix is to just drop the CustomViewPager class into different package which does not have support package name

@frapeti
Copy link
Author

frapeti commented Nov 20, 2018

Ualabee@663ece3

@DreierF
Copy link

DreierF commented Nov 24, 2018

I created a fork of this library since the author seems to no longer maintain it and published an AndroidX compatible version to maven central: https://github.com/DreierF/material-intro-screen

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

@DreierF Highly appreciate your work. Keep up the good work.

@zjxuzhj
Copy link

zjxuzhj commented Sep 9, 2019

@DreierF thank you

@Sanaebadi97
Copy link

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

and solve my problem

@BhoomiKhan
Copy link

I created a fork of this library since the author seems to no longer maintain it and published an AndroidX compatible version to maven central: https://github.com/DreierF/material-intro-screen

thank you dreierF your solution helped me a lot.

@guriosam
Copy link

I created a fork of this library since the author seems to no longer maintain it and published an AndroidX compatible version to maven central: https://github.com/DreierF/material-intro-screen

You are a god, just saved my day!

@umutgultekn
Copy link

@DreierF thank u bro. It's work well.

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