acefalobi / android-stepper

A library for creating a wizard-like step-through user interface that uses navigation components and menus for displaying steps with advanced customization.
Apache License 2.0
325 stars 38 forks source link

Error inflating stepper on API level 21 (Android 5.0) #37

Open roozbehzarei opened 2 years ago

roozbehzarei commented 2 years ago

The stepper is working fine while testing on API 32, but on API 21 it gives the following error:

android.view.InflateException: Binary XML file line #7: Error inflating class com.aceinteract.android.stepper.StepperNavigationView
...
...
Caused by: java.lang.reflect.InvocationTargetException
...
...
Caused by: java.lang.NoSuchMethodError: No virtual method setTextAppearance(I)V in class Landroid/widget/TextView; or its super classes (declaration of 'android.widget.TextView' appears in /system/framework/framework.jar:classes2.dex)