-
-
Notifications
You must be signed in to change notification settings - Fork 545
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Upgrade to 2.1.0 from 1.2.0 fails in Android #530
Comments
@jobypthomas I think this has to do with incorrect keys in production mode. I had the same couple of weeks ago and I was still using testkeys in the app and the server was using production keys. Also it can be that you still have If not can you provide me some crash logs? |
@remonh87 Thank you for responding. testMode is false by default. It seems not a key issue as it is working fine in Apple and when device connected directly to the computer. Please note, I am in test setup and not in Production setup with this change. Following is the log from the device (Pixel 3XL): 01-08 15:13:18.955 10303 20739 20739 E AndroidRuntime: java.lang.NoSuchMethodError: No static method asAttributeSet(Ls/d/a/a;)Landroid/util/AttributeSet; in class Landroid/util/Xml; or its super classes (declaration of 'android.util.Xml' appears in /system/framework/framework.jar!classes3.dex) |
@remonh87 01-08 08:12:33.980 10266 20064 20064 E AndroidRuntime: java.lang.NoSuchMethodError: No static method asAttributeSet(Ls/d/a/a;)Landroid/util/AttributeSet; in class Landroid/util/Xml; or its super classes (declaration of 'android.util.Xml' appears in /system/framework/framework.jar!classes2.dex) |
Found something similar - jonasbark/flutter_stripe_payment#257 I am going to try it out. |
@jonasbark @remonh87 Did NOT resolve with the fix for jonasbark/flutter_stripe_payment#257. I see that the error is different - java.lang.NoSuchMethodError: No static method asAttributeSet(Ls/d/a/a;)Landroid/util/AttributeSet; in class Landroid/util/Xml; or its super classes (declaration of 'android.util.Xml' appears in /system/framework/framework.jar!classes2.dex) |
Could you remove the The plugin itself already adds its own version here:
|
@jamesblasco Thank you for your help!
AndroidManifest.xml
Thanks! |
Could you try this: https://stackoverflow.com/a/60631550/8096916 I feel the issue is related to google pay in some way |
And if possible update wallet to 'com.google.android.gms:play-services-wallet:19.0.1' and do a clean of the android project in android studio. Let's see if that solve it |
@jamesblasco I've updated to com.google.android.gms:play-services-wallet:19.0.1 but no luck! |
What about changing the recommendation of the proguard rules from the link I shared above? |
@jamesblasco Yes, it worked. I am not an android developer and I did not have proguard-rules.pro in my setup so I had to setup the proguard to make it work. Many Thanks for your guidance. |
Describe the bug
Upgrade to 2.1.0 from 1.2.0 along with the recommended changes to build.gradle and the Stripe.instance.initPaymentSheet() and Stripe.instance.presentPaymentSheet() makes the app crash in Android when payment screen is presented.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The payment screen is shown and payment to go through without crashing the app.
Smartphone / tablet
Additional context
Copy @remonh87
The text was updated successfully, but these errors were encountered: