#Darkluink-type-error
1 messages · Page 1 of 1 (latest)
Hi there! Give me one second.
Can you provide the code where you are hitting that error?
it's when the app starts, in the StripeProvider
like this
This error is located at:
in StripeProvider (at app/index.js:165)
in _c (created by InjectIntl(_c))
in InjectIntl(_c) (at IntlProvider.js:42)
in IntlProvider (at IntlProvider.js:36)
in IntlProvider (at app/index.js:164)
in ClassPass (at renderApplication.js:47)
in RCTView (at View.js:34)
in View (at AppContainer.js:107)
in RCTView (at View.js:34)
in View (at AppContainer.js:134)
in AppContainer (at renderApplication.js:40)```
Thanks! I'm not super familiar with Android so asking a colleague for help.
thank you, I'm not either, in iOS it's working
that basically means the Stripe Android library(which the stripe-react-native SDK depends on), is not installed
though how you'd get into that situation, I'm not sure. I'd suggest killing all the processes for the metro bundler and so on, and doing a clean build and run of npx react-native start and then npx react-native run-android
ah also you mention Expo
you have to use "eject" in Expo. But I don't know much about it.
I'm using the react native start, but running the project from android studio instead of by command line, not sure if that would affect
have you synced the project with Gradle?
yes
that's what installs the dependencies. I've never run a React Native app that way, but if you're running through Android Studio it would make sense to me that you'd to gradle sync it
what version of Expo are you using?
5.3.0
for the stripe-android mentionend, what should be the minimum version? I want to check if it's correct
@light reef it depends what version of stripe-react-native you're using.
like, the dependency is part of the library itself, it's defined in node_modules/@stripe/stripe-react-native/android/build.gradle
overall this feels like something that can only be fixed by doing some clean/fresh builds and restarting everything, though I know that's not a great answer,I'm not sure what else to suggest.
will try that, thanks
5.3.0 is the version of expo-cli, not the actual Expo dependency your app is using
Expo 42 (https://docs.expo.dev/workflow/upgrading-expo-sdk-walkthrough/#sdk-42) is when they started supporting Stripe directly so you need to be using at least that
got it, will check that one too