jonasbark/flutter_stripe_payment

I got this error anytime i call : StripePayment.paymentRequestWithCardForm(

karamatpkid opened this issue · 0 comments

    I got this error anytime i call : StripePayment.paymentRequestWithCardForm(
      CardFormPaymentRequest());

I don't know what to do. Please helppppppp

Shutting down VM
E/AndroidRuntime( 9718): FATAL EXCEPTION: main
E/AndroidRuntime( 9718): Process: com.eta.alerteapp, PID: 9718
E/AndroidRuntime( 9718): android.view.InflateException: Binary XML file line #14 in com.eta.alerteapp:layout/activity_stripe: Binary XML file line #14 in com.eta.alerteapp:layout/activity_stripe: Error inflating class com.stripe.android.view.CardMultilineWidget
E/AndroidRuntime( 9718): Caused by: android.view.InflateException: Binary XML file line #14 in com.eta.alerteapp:layout/activity_stripe: Error inflating class com.stripe.android.view.CardMultilineWidget
E/AndroidRuntime( 9718): Caused by: java.lang.reflect.InvocationTargetException
E/AndroidRuntime( 9718): at java.lang.reflect.Constructor.newInstance0(Native Method)
E/AndroidRuntime( 9718): at java.lang.reflect.Constructor.newInstance(Constructor.java:343)
E/AndroidRuntime( 9718): at android.view.LayoutInflater.createView(LayoutInflater.java:852)
E/AndroidRuntime( 9718): at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:1004)
E/AndroidRuntime( 9718): at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:959)
E/AndroidRuntime( 9718): at android.view.LayoutInflater.rInflate(LayoutInflater.java:1121)
E/AndroidRuntime( 9718): at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:1082)
E/AndroidRuntime( 9718): at android.view.LayoutInflater.inflate(LayoutInflater.java:680)
E/AndroidRuntime( 9718): at android.view.LayoutInflater.inflate(LayoutInflater.java:532)
E/AndroidRuntime( 9718): at android.view.LayoutInflater.inflate(LayoutInflater.java:479)
E/AndroidRuntime( 9718): at de.jonasbark.stripepayment.StripeDialog.onCreateView(StripeDialog.kt:36)
E/AndroidRuntime( 9718): at android.app.Fragment.performCreateView(Fragment.java:2505)
E/AndroidRuntime( 9718): at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:1303)
E/AndroidRuntime( 9718): at android.app.FragmentManagerImpl.addAddedFragments(FragmentManager.java:2463)
E/AndroidRuntime( 9718): at android.app.FragmentManagerImpl.executeOpsTogether(FragmentManager.java:2234)
E/AndroidRuntime( 9718): at android.app.FragmentManagerImpl.removeRedundantOperationsAndExecute(FragmentManager.java:2190)
E/AndroidRuntime( 9718): at android.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:2091)
E/AndroidRuntime( 9718): at android.app.FragmentManagerImpl$1.run(FragmentManager.java:742)
E/AndroidRuntime( 9718): at android.os.Handler.handleCallback(Handler.java:938)
E/AndroidRuntime( 9718): at android.os.Handler.dispatchMessage(Handler.java:99)
E/AndroidRuntime( 9718): at android.os.Looper.loop(Looper.java:223)
E/AndroidRuntime( 9718): at android.app.ActivityThread.main(ActivityThread.java:7968)
E/AndroidRuntime( 9718): at java.lang.reflect.Method.invoke(Native Method)
E/AndroidRuntime( 9718): at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:635)
E/AndroidRuntime( 9718): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:947)
E/AndroidRuntime( 9718): Caused by: android.view.InflateException: Binary XML file line #7 in com.eta.alerteapp:layout/card_multiline_widget: Binary XML file line #7
in com.eta.alerteapp:layout/card_multiline_widget: Error inflating class com.stripe.android.view.CardNumberTextInputLayout
E/AndroidRuntime( 9718): Caused by: android.view.InflateException: Binary XML file line #7 in com.eta.alerteapp:layout/card_multiline_widget: Error inflating class com.stripe.android.view.CardNumberTextInputLayout
E/AndroidRuntime( 9718): Caused by: java.lang.reflect.InvocationTargetException
E/AndroidRuntime( 9718): at java.lang.reflect.Constructor.newInstance0(Native Method)
E/AndroidRuntime( 9718): at java.lang.reflect.Constructor.newInstance(Constructor.java:343)
E/AndroidRuntime( 9718): at android.view.LayoutInflater.createView(LayoutInflater.java:852)
E/AndroidRuntime( 9718): at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:1004)
E/AndroidRuntime( 9718): at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:959)
E/AndroidRuntime( 9718): at android.view.LayoutInflater.rInflate(LayoutInflater.java:1121)
E/AndroidRuntime( 9718): at android.view.LayoutInflater.inflate(LayoutInflater.java:654)
E/AndroidRuntime( 9718): at android.view.LayoutInflater.inflate(LayoutInflater.java:532)
E/AndroidRuntime( 9718): at android.view.LayoutInflater.inflate(LayoutInflater.java:479)
E/AndroidRuntime( 9718): at com.stripe.android.databinding.CardMultilineWidgetBinding.inflate(CardMultilineWidgetBinding.java:82)
E/AndroidRuntime( 9718): at com.stripe.android.view.CardMultilineWidget.(CardMultilineWidget.kt:53)
E/AndroidRuntime( 9718): at com.stripe.android.view.CardMultilineWidget.(CardMultilineWidget.kt:51)
E/AndroidRuntime( 9718): at com.stripe.android.view.CardMultilineWidget.(Unknown Source:8)
E/AndroidRuntime( 9718): at java.lang.reflect.Constructor.newInstance0(Native Method)
E/AndroidRuntime( 9718): at java.lang.reflect.Constructor.newInstance(Constructor.java:343)
E/AndroidRuntime( 9718): at android.view.LayoutInflater.createView(LayoutInflater.java:852)
E/AndroidRuntime( 9718): at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:1004)
E/AndroidRuntime( 9718): at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:959)
E/AndroidRuntime( 9718): at android.view.LayoutInflater.rInflate(LayoutInflater.java:1121)
E/AndroidRuntime( 9718): at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:1082)
E/AndroidRuntime( 9718): at android.view.LayoutInflater.inflate(LayoutInflater.java:680)
E/AndroidRuntime( 9718): at android.view.LayoutInflater.inflate(LayoutInflater.java:532)
E/AndroidRuntime( 9718): at android.view.LayoutInflater.inflate(LayoutInflater.java:479)
E/AndroidRuntime( 9718): at de.jonasbark.stripepayment.StripeDialog.onCreateView(StripeDialog.kt:36)
E/AndroidRuntime( 9718): at android.app.Fragment.performCreateView(Fragment.java:2505)
E/AndroidRuntime( 9718): at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:1303)
E/AndroidRuntime( 9718): at android.app.FragmentManagerImpl.addAddedFragments(FragmentManager.java:2463)
E/AndroidRuntime( 9718): at android.app.FragmentManagerImpl.executeOpsTogether(FragmentManager.java:2234)
E/AndroidRuntime( 9718): at android.app.FragmentManagerImpl.removeRedundantOperationsAndExecute(FragmentManager.java:2190)
E/AndroidRuntime( 9718): at android.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:2091)
E/AndroidRuntime( 9718): at android.app.FragmentManagerImpl$1.run(FragmentManager.java:742)
E/AndroidRuntime( 9718): at android.os.Handler.handleCallback(Handler.java:938)
E/AndroidRuntime( 9718): at android.os.Handler.dispatchMessage(Handler.java:99)
E/AndroidRuntime( 9718): at android.os.Looper.loop(Looper.java:223)
E/AndroidRuntime( 9718): at android.app.ActivityThread.main(ActivityThread.java:7968)
E/AndroidRuntime( 9718): at java.lang.reflect.Method.invoke(Native Method)
E/AndroidRuntime( 9718): at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:635)
E/AndroidRuntime( 9718): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:947)
E/AndroidRuntime( 9718): Caused by: android.view.InflateException: Binary XML file line #18 in com.eta.alerteapp:layout/design_text_input_end_icon: Binary XML file line #18 in com.eta.alerteapp:layout/design_text_input_end_icon: Error inflating class com.google.android.material.internal.CheckableImageButton
E/AndroidRuntime( 9718): Caused by: android.view.InflateException: Binary XML file line #18 in com.eta.alerteapp:layout/design_text_input_end_icon: Error inflating class com.google.android.material.internal.CheckableImageButton
E/AndroidRuntime( 9718): Caused by: java.lang.reflect.InvocationTargetException
E/AndroidRuntime( 9718): at java.lang.reflect.Constructor.newInstance0(Native Method)
E/AndroidRuntime( 9718): at java.lang.reflect.Constructor.newInstance(Constructor.java:343)
E/AndroidRuntime( 9718): at android.view.LayoutInflater.createView(LayoutInflater.java:852)
E/AndroidRuntime( 9718): at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:1004)
E/AndroidRuntime( 9718): at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:959)
E/AndroidRuntime( 9718): at android.view.LayoutInflater.inflate(LayoutInflater.java:657)
E/AndroidRuntime( 9718): at android.view.LayoutInflater.inflate(LayoutInflater.java:532)
E/AndroidRuntime( 9718): at com.google.android.material.textfield.TextInputLayout.(TextInputLayout.java:600)
E/AndroidRuntime( 9718): at com.stripe.android.view.CardNumberTextInputLayout.(CardNumberTextInputLayout.kt:21)
E/AndroidRuntime( 9718): at com.stripe.android.view.CardNumberTextInputLayout.(CardNumberTextInputLayout.kt:20)
E/AndroidRuntime( 9718): at com.stripe.android.view.CardNumberTextInputLayout.(Unknown Source:6)
E/AndroidRuntime( 9718): at java.lang.reflect.Constructor.newInstance0(Native Method)
E/AndroidRuntime( 9718): at java.lang.reflect.Constructor.newInstance(Constructor.java:343)
E/AndroidRuntime( 9718): at android.view.LayoutInflater.createView(LayoutInflater.java:852)
E/AndroidRuntime( 9718): at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:1004)
E/AndroidRuntime( 9718): at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:959)
E/AndroidRuntime( 9718): at android.view.LayoutInflater.rInflate(LayoutInflater.java:1121)
E/AndroidRuntime( 9718): at android.view.LayoutInflater.inflate(LayoutInflater.java:654)
E/AndroidRuntime( 9718): at android.view.LayoutInflater.inflate(LayoutInflater.java:532)
E/AndroidRuntime( 9718): at android.view.LayoutInflater.inflate(LayoutInflater.java:479)
E/AndroidRuntime( 9718): at com.stripe.android.databinding.CardMultilineWidgetBinding.inflate(CardMultilineWidgetBinding.java:82)
E/AndroidRuntime( 9718): at com.stripe.android.view.CardMultilineWidget.(CardMultilineWidget.kt:53)
E/AndroidRuntime( 9718): at com.stripe.android.view.CardMultilineWidget.(CardMultilineWidget.kt:51)
E/AndroidRuntime( 9718): at com.stripe.android.view.CardMultilineWidget.(Unknown Source:8)
E/AndroidRuntime( 9718): at java.lang.reflect.Constructor.newInstance0(Native Method)
E/AndroidRuntime( 9718): at java.lang.reflect.Constructor.newInstance(Constructor.java:343)
E/AndroidRuntime( 9718): at android.view.LayoutInflater.createView(LayoutInflater.java:852)
E/AndroidRuntime( 9718): at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:1004)
E/AndroidRuntime( 9718): at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:959)
E/AndroidRuntime( 9718): at android.view.LayoutInflater.rInflate(LayoutInflater.java:1121)
E/AndroidRuntime( 9718): at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:1082)
E/AndroidRuntime( 9718): at android.view.LayoutInflater.inflate(LayoutInflater.java:680)
E/AndroidRuntime( 9718): at android.view.LayoutInflater.inflate(LayoutInflater.java:532)
E/AndroidRuntime( 9718): at android.view.LayoutInflater.inflate(LayoutInflater.java:479)
E/AndroidRuntime( 9718): at de.jonasbark.stripepayment.StripeDialog.onCreateView(StripeDialog.kt:36)
E/AndroidRuntime( 9718): at android.app.Fragment.performCreateView(Fragment.java:2505)
E/AndroidRuntime( 9718): at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:1303)
E/AndroidRuntime( 9718): at android.app.FragmentManagerImpl.addAddedFragments(FragmentManager.java:2463)
E/AndroidRuntime( 9718): at android.app.FragmentManagerImpl.executeOpsTogether(FragmentManager.java:2234)
E/AndroidRuntime( 9718): at android.app.FragmentManagerImpl.removeRedundantOperationsAndExecute(FragmentManager.java:2190)
E/AndroidRuntime( 9718): at android.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:2091)
E/AndroidRuntime( 9718): at android.app.FragmentManagerImpl$1.run(FragmentManager.java:742)
E/AndroidRuntime( 9718): at android.os.Handler.handleCallback(Handler.java:938)
E/AndroidRuntime( 9718): at android.os.Handler.dispatchMessage(Handler.java:99)
E/AndroidRuntime( 9718): at android.os.Looper.loop(Looper.java:223)
E/AndroidRuntime( 9718): at android.app.ActivityThread.main(ActivityThread.java:7968)
E/AndroidRuntime( 9718): at java.lang.reflect.Method.invoke(Native Method)
E/AndroidRuntime( 9718): at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:635)
E/AndroidRuntime( 9718): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:947)
E/AndroidRuntime( 9718): Caused by: java.lang.NoSuchMethodError: No static method saveAttributeDataForStyleable(Landroid/view/View;Landroid/content/Context;[ILandroid/util/AttributeSet;Landroid/content/res/TypedArray;II)V in class Landroidx/core/view/ViewCompat; or its super classes (declaration of 'androidx.core.view.ViewCompat'
appears in /data/app/~~jtbkJ_dblXKTcYdj6YVCCg==/com.eta.alerteapp-rxCBArM_MBXTZ75dZ81xRg==/base.apk)
E/AndroidRuntime( 9718): at androidx.appcompat.widget.AppCompatBackgroundHelper.loadFromAttributes(AppCompatBackgroundHelper.java:51)
E/AndroidRuntime( 9718): at androidx.appcompat.widget.AppCompatImageButton.(AppCompatImageButton.java:80)
E/AndroidRuntime( 9718): at com.google.android.material.internal.CheckableImageButton.(CheckableImageButton.java:56)
E/AndroidRuntime( 9718): at com.google.android.material.internal.CheckableImageButton.(CheckableImageButton.java:52)
E/AndroidRuntime( 9718): ... 49 more
D/AndroidRuntime( 9718): Entered RuntimeInit doCollect! ProcessID=com.eta.alerteapp
D/SmartServiceManager_smart( 9718): callSbr for calling parm:3,pid=com.eta.alerteapp
I/Process ( 9718): Sending signal. PID: 9718 SIG: 9

Originally posted by @Elietshi1004 in #88 (comment)