-
Notifications
You must be signed in to change notification settings - Fork 42
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
Use newer build tools to prevent crash when using in a project with com.android.tools.build:gradle:3.0.0-beta2 #312
base: master
Are you sure you want to change the base?
Conversation
(to prevent app crash when used with newer buildtools)
Have the same issue! |
I had the same issue. |
Thanks @ChristophKaser In the meantime, if switching from 2.3.0 to 3.0.0 of com.android.tools.build:gradle it is also necessary to change maven repository from |
It seems the author is not actively working on this project right now. How can I make gradle use a modified version of this lib? currently |
You can use jitpack.io:
|
Currently, when this library is used with the newest android gradle plugin (com.android.tools.build:gradle:3.0.0-beta2), the app crashes when the PagerSlidingTabStrip is inflated:
java.lang.UnsupportedOperationException: Can't convert value at index 1 to color: type=0x5 at android.content.res.TypedArray.getColor(TypedArray.java:480) at com.astuetz.PagerSlidingTabStrip.<init>(PagerSlidingTabStrip.java:144) at com.astuetz.PagerSlidingTabStrip.<init>(PagerSlidingTabStrip.java:106)
This is caused by the following bug in the old build tools:
https://issuetracker.google.com/issues/64472743
This PR fixes the problem by building the library with newer buildtools