#Darkluink-type-error

1 messages · Page 1 of 1 (latest)

heady kayak
#

Hi there! Give me one second.

#

Can you provide the code where you are hitting that error?

light reef
#

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)```
heady kayak
#

Thanks! I'm not super familiar with Android so asking a colleague for help.

light reef
#

thank you, I'm not either, in iOS it's working

mystic tapir
#

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.

light reef
#

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

mystic tapir
#

have you synced the project with Gradle?

light reef
#

yes

mystic tapir
#

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?

light reef
#

5.3.0

#

for the stripe-android mentionend, what should be the minimum version? I want to check if it's correct

mystic tapir
#

@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.

light reef
#

will try that, thanks

mystic tapir
#

5.3.0 is the version of expo-cli, not the actual Expo dependency your app is using

light reef
#

got it, will check that one too