#shahmir_code
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/1354708194860990495
📝 Have more to share? Add more details, code, screenshots, videos, etc. below.
hey river can you help me with this issue ?
What is the error message?
Could not create task ':stripe_stripe-react-native:compileDebugKotlin'.
Could you share the full stacktrace?
yes in a minute
idk how to get the stacktrace
but i've searched on this error a bit this error there's an issue opened
https://github.com/stripe/stripe-react-native/issues/1560
i'm getting the similar error
Hi there, are you getting the same " Unknown Kotlin JVM target: 20" error?
Incompatible classes were found in dependencies. Remove them from the classpath or use '-Xskip-metadata-version-check' to suppress errors
e: file:///Users/macbookpro/.gradle/caches/8.10.2/transforms/a4069c0f3663fc91105b2213182a03ce/transformed/payments-model-21.6.0-api.jar!/META-INF/payments-model_release.kotlin_moduleModule was compiled with an incompatible version of Kotlin. The binary version of its metadata is 2.1.0, expected version is 1.9.0.
e: file:///Users/macbookpro/.gradle/caches/8.10.2/transforms/b26719f84f838c3fc1b4d3f63487de7d/transformed/financial-connections-21.6.0-api.jar!/META-INF/financial-connections_release.kotlin_moduleModule was compiled with an incompatible version of Kotlin. The binary version of its metadata is 2.1.0, expected version is 1.9.0.
my error contains such lines
but there's nothing related to what you mentioned
"model_release.kotlin_moduleModule was compiled with an incompatible version of Kotlin. The binary version of its metadata is 2.1.0, expected version is 1.9.0."
Looks like you are using an incompatible verion of Kotlin. Do you want to use another version? i.e., 2.1.0
i'm on react-native 0.76.1
and my kotlin version is 1.9.24
i've tried to use 2.1.0 but it gave me dependency errors
should i downgrade the stripe ?
for now i'm using its latest version which is 0.43.0
Are you using stripe-react-native or stripe-android?
i'm using stripe-react-native
Ok, then you don't need to edit the build.gradle directly.
okay so what should i do to make things work
https://github.com/stripe/stripe-react-native/blob/master/android/build.gradle use the same configuration as the build.gradle in the stripe-react-native sdk
i've made it work through downgrading to stripe from 0.43.0 to 0.41.0
because 0.43.0 required kotlin version 2.1.0 and my app was running on 1.9.8 which was causinf the issue
later on when i upgrade my react native version i'll update these all things with it
thanks for your help jack really means alot ❤️