Closed quirkfly closed 7 years ago
Hi @quirkfly, Which version of the library are you using? Also on what devices do you see this crash? What's your support library version?
I am using material-stepper 3.3.0. The crash is happening on Android 5.1.1. As for the support library I am using the following
compile 'com.android.support:support-annotations:23.4.0'
compile 'com.android.support:appcompat-v7:24.2.0'
compile 'com.android.support:design:24.2.0'
compile 'com.android.support:recyclerview-v7:23.2.1'
compile 'com.android.support:cardview-v7:24.2.0'
3.3.0
depends on Android Support library 25.3.1
so there might be some issues there if you're using different versions in your app. I'd recommend using the same version for all support libraries in general.
You can check the resolved library versions by running:
./gradlew :app:dependencies --configuration compile
assuming you module's name is app
.
Can you update all of them to 25.3.1
?
I see. That would make sense. The update to 25.3.1
is unfortunately not an option as I am running on 32bit arch. I guess will have to live with progress_bar type, which is working fine, than. Nevertheless thanks for clarification.
You can also check with an older version of the stepper library, e.g. 2.0.0?
Actually did the update of support library to 25.4.0
as suggested (32bit arch is ok with that, it is the build tools I can not go above version 23) however the issue is still around. Tried even to downgrade the stepper library to 2.0.0
however encountered compilation errors as the step fragments are implementing the callbacks introduced in a later version.
Hmmm it might be build tools related, some people were reporting some issues when using older build tools than in this lib. Regarding the compilation errors you might try using callbacks described here: https://github.com/stepstone-tech/android-material-stepper/tree/v2.0.0 although if it's build tools related this might not work as well :/
3.2.0
is the lowest I can go with without touching the code, still crashing though. Will try on Android 6.0 later on and report my findings.
Eventually did try running the code on Android 7.0, went fine no crash occurred. Hence It appears as the issue is pertinent to Android 5.1 (and possibly below).
This is probably due to animated vector drawable compat support library which is used in the library and is incompatible with the build tools you're using. The only solution I see here is to either update the build tools or use an older library version which didn't use animated vector drawables e.g. 2.0.0. Although the latter will require changing some code probably in your app and you won't be able to use the latest features.
Hi there,
First of all thanks a lot for the great library!
I am experiencing the following crash on Lollipop device when trying to use tab steps.
[snip]
Here is my layout containing StepperLayout
Here is my stepper adapter
And finally here is relevant excerpt from acitivity hosting the stepper
Digging further inside AnimatedVectorDrawable.java
For a reason unknown to me the animators list is null. Do you have any idea what could cause it and how to prevent the crash?
Cheers