#shahmir_code

1 messages · Page 1 of 1 (latest)

silk owlBOT
#

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

thick kestrel
#

hey river can you help me with this issue ?

dire needle
#

What is the error message?

thick kestrel
#

Could not create task ':stripe_stripe-react-native:compileDebugKotlin'.

dire needle
#

Could you share the full stacktrace?

thick kestrel
#

yes in a minute

#

idk how to get the stacktrace

#

i'm getting the similar error

willow ginkgo
#

Hi there, are you getting the same " Unknown Kotlin JVM target: 20" error?

thick kestrel
#

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

willow ginkgo
#

"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

thick kestrel
#

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

willow ginkgo
#

Are you using stripe-react-native or stripe-android?

thick kestrel
#

i'm using stripe-react-native

willow ginkgo
#

Ok, then you don't need to edit the build.gradle directly.

thick kestrel
#

okay so what should i do to make things work

willow ginkgo
thick kestrel
#

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 ❤️