datatrans / android-sdk

Accept payments on your Android apps: Our mobile SDKs support your entire payment and registration process and simplify the integration of any payment method in your mobile apps.
Other
6 stars 0 forks source link

Visa/Mastercard payment crash on Android 5.0 #4

Closed Kevinrob closed 2 years ago

Kevinrob commented 2 years ago

Hi, we got a crash on Android 5.0 with credit card payment.

Top of stacktrace:

    java.lang.NoSuchMethodError: No virtual method getTextSizeUnit()I in class Landroid/widget/TextView; or its super classes (declaration of 'android.widget.TextView' appears in /system/framework/framework.jar:classes2.dex)
        at ch.datatrans.payment.creditcard.PlaceholderTextField.a(SourceFile:13)
        at ch.datatrans.payment.creditcard.PlaceholderTextField$$ExternalSyntheticLambda2.onGlobalLayout(D8$$SyntheticClass)

[getTextSizeUnit](https://developer.android.com/reference/android/widget/TextView.html#getTextSizeUnit()) was added in Android 30

image

richiehug commented 2 years ago

Hey @Kevinrob - we'll check this out. Will get back to you asap.

richiehug commented 2 years ago

Hey @Kevinrob - This bugfix is planned for 2.2.0. We introduced this bug in 2.1.0, so feel free to use 2.0.2 in the meantime.

Kevinrob commented 2 years ago

Thank you @richiehug 👍🏻

Kevinrob commented 2 years ago

Fixed with https://github.com/datatrans/android-sdk/releases/tag/2.2.0