stepstone-tech / android-material-stepper

This library allows to use Material steppers inside Android applications.
Apache License 2.0
1.78k stars 263 forks source link

java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.Object java.lang.reflect.Constructor.newInstance(java.lang.Object[])' on a null object reference #286

Open FranPR9 opened 5 years ago

FranPR9 commented 5 years ago

Make sure these boxes are checked before submitting your issue - thank you!

FranPR9 commented 5 years ago

hi, my activity is unable to start because an error inflating the stepperlayout. It started yesterday sep/24/2019. today sep/25/2019 I have 2019. Captura

this is the log of the error; Caused by java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.Object java.lang.reflect.Constructor.newInstance(java.lang.Object[])' on a null object reference at androidx.core.graphics.TypefaceCompatApi21Impl.newFamily + 116(TypefaceCompatApi21Impl.java:116) at androidx.core.graphics.TypefaceCompatApi21Impl.createFromFontFamilyFilesResourceEntry + 176(TypefaceCompatApi21Impl.java:176) at androidx.core.graphics.TypefaceCompat.createFromResourcesFamilyXml + 116(TypefaceCompat.java:116) at androidx.core.content.res.ResourcesCompat.loadFont + 415(ResourcesCompat.java:415) at androidx.core.content.res.ResourcesCompat.loadFont + 361(ResourcesCompat.java:361) at androidx.core.content.res.ResourcesCompat.getFont + 339(ResourcesCompat.java:339) at androidx.appcompat.widget.TintTypedArray.getFont + 119(TintTypedArray.java:119) at androidx.appcompat.widget.AppCompatTextHelper.updateTypefaceAndStyle + 265(AppCompatTextHelper.java:265) at androidx.appcompat.widget.AppCompatTextHelper.loadFromAttributes + 177(AppCompatTextHelper.java:177) at androidx.appcompat.widget.AppCompatButton. + 77(AppCompatButton.java:77) at androidx.appcompat.widget.AppCompatButton. + 67(AppCompatButton.java:67) at androidx.appcompat.app.AppCompatViewInflater.createButton + 187(AppCompatViewInflater.java:187) at androidx.appcompat.app.AppCompatViewInflater.createView + 110(AppCompatViewInflater.java:110) at androidx.appcompat.app.AppCompatDelegateImpl.createView + 1266(AppCompatDelegateImpl.java:1266) at androidx.appcompat.app.AppCompatDelegateImpl.onCreateView + 1316(AppCompatDelegateImpl.java:1316) at android.view.LayoutInflater.createViewFromTag + 772(LayoutInflater.java:772) at android.view.LayoutInflater.createViewFromTag + 730(LayoutInflater.java:730) at android.view.LayoutInflater.rInflate + 863(LayoutInflater.java:863) at android.view.LayoutInflater.rInflateChildren + 824(LayoutInflater.java:824) at android.view.LayoutInflater.rInflate + 866(LayoutInflater.java:866) at android.view.LayoutInflater.inflate + 489(LayoutInflater.java:489) at java.lang.reflect.Method.invoke(Method) at java.lang.reflect.Method.invoke(Method) at java.lang.reflect.Method.invoke(Method) at android.view.LayoutInflater.inflate + 423(LayoutInflater.java:423) at com.stepstone.stepper.StepperLayout.init + 746(StepperLayout.java:746) at com.stepstone.stepper.StepperLayout. + 292(StepperLayout.java:292) at java.lang.reflect.Constructor.newInstance0(Constructor.java) at java.lang.reflect.Constructor.newInstance + 334(Constructor.java:334) at android.view.LayoutInflater.createView + 647(LayoutInflater.java:647) at android.view.LayoutInflater.createViewFromTag + 790(LayoutInflater.java:790) at android.view.LayoutInflater.createViewFromTag + 730(LayoutInflater.java:730) at android.view.LayoutInflater.rInflate + 863(LayoutInflater.java:863) at android.view.LayoutInflater.rInflateChildren + 824(LayoutInflater.java:824) at android.view.LayoutInflater.inflate + 515(LayoutInflater.java:515) at java.lang.reflect.Method.invoke(Method) at java.lang.reflect.Method.invoke(Method) at java.lang.reflect.Method.invoke(Method) at android.view.LayoutInflater.inflate + 423(LayoutInflater.java:423) at android.view.LayoutInflater.inflate + 374(LayoutInflater.java:374) at androidx.appcompat.app.AppCompatDelegateImpl.setContentView + 469(AppCompatDelegateImpl.java:469) at androidx.appcompat.app.AppCompatActivity.setContentView + 140(AppCompatActivity.java:140) at androidx.databinding.DataBindingUtil.setContentView + 303(DataBindingUtil.java:303) at androidx.databinding.DataBindingUtil.setContentView + 284(DataBindingUtil.java:284) at mx.weex.appwallet.activity.RegisterActivity.onCreate + 99(RegisterActivity.java:99) at android.app.Activity.performCreate + 7025(Activity.java:7025) at android.app.Activity.performCreate + 7016(Activity.java:7016) at android.app.Instrumentation.callActivityOnCreate + 1217(Instrumentation.java:1217) at android.app.ActivityThread.performLaunchActivity + 2812(ActivityThread.java:2812) at android.app.ActivityThread.handleLaunchActivity + 2955(ActivityThread.java:2955) at android.app.ActivityThread.-wrap12() at android.app.ActivityThread$H.handleMessage + 1650(ActivityThread.java:1650) at android.os.Handler.dispatchMessage + 106(Handler.java:106) at android.os.Looper.loop + 164(Looper.java:164) at android.app.ActivityThread.main + 6747(ActivityThread.java:6747) at java.lang.reflect.Method.invoke(Method.java) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run + 455(RuntimeInit.java:455) at com.android.internal.os.ZygoteInit.main + 807(ZygoteInit.java:807) at java.lang.reflect.Method.invoke(Method)

FranPR9 commented 5 years ago

Does this error has to do with androidX??

FranPR9 commented 5 years ago

I have this version in my gradle: com.stepstone.stepper:material-stepper:4.3.1

felixdivo commented 4 years ago

Does this error has to do with androidX??

It generally works with AndroidX in my App

abhivinny commented 4 years ago

I have this version in my gradle: com.stepstone.stepper:material-stepper:4.3.1

Did you find the reason?

FranPR9 commented 4 years ago

Not really, I implemented my own.