#eronblack3563_error
1 messages ยท Page 1 of 1 (latest)
๐ Welcome to your new thread!
โฒ๏ธ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.
โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.
๐ This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1359838076083507300
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
Hi, let me help you with this.
Checking, sorry for delay
Sure.
Compilation error. See log for more details
Have you looked at the logs?
Yeah, I have analyzed the logs its Kotlin type mismatch error that's happening due to incompatibility between stripe and kotlin I guess.
Could you please share the exact logs?
Have you tried upgrading the @stripe/stripe-react-native version to 0.43.0? https://github.com/stripe/stripe-react-native
But actually I feel like the issue might be in Kotlin version <2
I can try upgrading to 0.43.0
As I said, I think the actual issue is in Kotlin version. Are you able to upgrade it?
Same issue
Class 'com.stripe.android.model.ConfirmPaymentIntentParams' was compiled with an incompatible version of Kotlin. The actual metadata version is 2.1.0, but the compiler version 1.9.0 can read versions up to 2.0.0.
The class is loaded from /Users/user/.gradle/caches/8.10.2/transforms/c7568ee1599343b752fdc724a56bf26f/transformed/payments-core-21.6.0-api.jar!/com/stripe/android/model/ConfirmPaymentIntentParams.class
hi! I'm taking over this thread. give me a few minutes to catchup.
Sure.
Hey! Taking over for my colleague. Let me catch up.
Okay.
Are you able to reproduce on our official sample ?
https://github.com/stripe/stripe-react-native/tree/master/example
This seems to be a conflict in your dependencies
You should use dependencies that have the same kotlin compiled version
Usually, in this kind of cases, migrating every thing to the latest version will fix this.
The root issue is this line:
Class 'com.stripe.android.model.ConfirmPaymentIntentParams' was compiled with an incompatible version of Kotlin. The actual metadata version is 2.1.0, but the compiler version 1.9.0 can read versions up to 2.0.0.
Try upgrading your gradle version too
So I am using incompatible stripe version?
I just tried with 2.1.0 but got the same error. Can you suggest a compatible version
You can try using an old version of Stripe SDK that is compatible with your gradle version (8.0.2)
Any suggested version?
You'll need probably a very old version (from May 2023)
For example you can try 0.27.2
But it's a very old one.
Let me try