#shiva - Android build

1 messages · Page 1 of 1 (latest)

chilly temple
#

Hey, very sorry that I missed this question for a while. Checking in to this now

silk knoll
#

no worries at all

#

when i run expo build:android it works perfectly fine

chilly temple
#

I see you have an email chain with a colleague of mine about this error. So is this still the error after trying the build with a later version of stripe-react-native ?

#

Have you tried updating your compileSdkVersion?

Make sure to update your app’s compileSdkVersion to 31 when using this version of the library.

silk knoll
#

dear

#

im runnig expo on a managed workflow

#

so i dont have access to the dependency list of android and ios

#

you there?

chilly temple
#

Still looking in to this and discussing with my colleagues

silk knoll
#

ok perfect thank you

chilly temple
#

Will get back to you with what we find

silk knoll
#

appreciate your time

chilly temple
#

There is a lot of info here but it looks like you will need to upgrade to Expo SDK 45. Unfortunately it looks like Expo SDK 44 + the managed workflow is not viable here. https://github.com/stripe/stripe-react-native/issues/812#issuecomment-1043043520

GitHub

Describe the bug The latest version of the library (0.2.4) appears to break the build process for RN Android projects due to requiring a higher minCompileSdk than is specified in standard React Nat...

silk knoll
#

yeah that is what rubeus also advices but the issue is that sdk 45 is a beta version

#

and sdk44 might still support the newer version of stripe when i use eas build

#

and eas buil is the only thing that fails now

pure fable
#

Hey there @silk knoll, stepping in as @chilly temple needs to step away. So yeah any eas build with Stripe RN 0.2.4+ will require Android SDK 31 so this isn't going to work together

#

Only option here really is either eject or upgrade to Expo SDK 45

silk knoll
#

Ok that makes sense. Maybe I'll wait once the Expo SDK 45 is out of beta and stable. Because at this time the only thing that does not work is the redirect after payment is completed for android users.