#jasim131999_error

1 messages · Page 1 of 1 (latest)

high treeBOT
#

👋 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/1362312173828702290

📝 Have more to share? Add more details, code, screenshots, videos, etc. below.

vestal badge
#

Hi there, looks like there's a mismatch in the kotline version

fierce whale
#

Ya bur its supposed to work dynamically and i even change kotlin version from build.gradle but still its not working and most importantly when i am changing kotlin version my others library starts error about kotlin mismatch…
React native version: 0.75.4

vestal badge
fierce whale
#

Do i have to add all line of code or just StripeSdk_kotlinVersion=1.8.0?? In gradle.properties??

StripeSdk_kotlinVersion=1.8.0
StripeSdk_compileSdkVersion=30
StripeSdk_targetSdkVersion=28
StripeSdk_minSdkVersion=21

vestal badge
fierce whale
#

Hi is there any way to get help on remote?? Or i can share my build.gradle and gradle.properties

#

ANDROID/BUILD.GRADLE:
buildscript {
ext {
buildToolsVersion = "34.0.0"
minSdkVersion = 23
compileSdkVersion = 35
targetSdkVersion = 35
ndkVersion = "26.1.10909125"
kotlinVersion = "1.9.24"
// kotlinVersion = "2.1.0"
googlePlayServicesAuthVersion = "20.7.0"
}
repositories {
google()
mavenCentral()
}
dependencies {
classpath("com.android.tools.build:gradle")
classpath("com.facebook.react:react-native-gradle-plugin")
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin")
classpath 'com.google.gms:google-services:4.4.2'
// classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion"
}
}

apply plugin: "com.facebook.react.rootproject"

#

ANDROID/GRADLE.PROPERTIES:

org.gradle.jvmargs=-Xmx2048m -XX:MaxMetaspaceSize=512m

android.useAndroidX=true

reactNativeArchitectures=armeabi-v7a,arm64-v8a,x86,x86_64

newArchEnabled=true

hermesEnabled=true

android.suppressUnsupportedCompileSdk=35

#

Hi sorry to bother but I don’t have native platform ideas so pls help me if possible..

vestal badge
#

Can you change kotlinVersion = "1.9.24"to kotlinVersion = "1.8.0"

fierce whale
#

still not working-
UPDATED ANDROID/BUILD.GRADLE:
buildscript {
ext {
buildToolsVersion = "34.0.0"
minSdkVersion = 23
compileSdkVersion = 35
targetSdkVersion = 35
ndkVersion = "26.1.10909125"
kotlinVersion = "1.8.0"
// kotlinVersion = "1.9.24"
// kotlinVersion = "2.1.0"
googlePlayServicesAuthVersion = "20.7.0"
}
repositories {
google()
mavenCentral()
}
dependencies {
classpath("com.android.tools.build:gradle")
classpath("com.facebook.react:react-native-gradle-plugin")
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin")
classpath 'com.google.gms:google-services:4.4.2'
// classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion"
}
}

apply plugin: "com.facebook.react.rootproject"

#

ERROR:
file:///Users/mac/Desktop/ReactNativeFR/JasimRN/AnyJob/node_modules/@stripe/stripe-react-native/android/src/main/java/com/reactnativestripesdk/utils/Mappers.kt:1041:27 Class 'kotlin.Unit' 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/mac/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib/2.1.10/d3028429e7151d7a7c1a0d63a4f60eac86a87b91/kotlin-stdlib-2.1.10.jar!/kotlin/Unit.class
e: file:///Users/mac/Desktop/ReactNativeFR/JasimRN/AnyJob/node_modules/@stripe/stripe-react-native/android/src/main/java/com/reactnativestripesdk/utils/PostalCodeUtilities.kt:5:105 Unresolved reference: isWhitespace
e: file:///Users/mac/Desktop/ReactNativeFR/JasimRN/AnyJob/node_modules/@stripe/stripe-react-native/android/src/main/java/com/reactnativestripesdk/utils/PostalCodeUtilities.kt:7:93 Unresolved reference: isWhitespace FAILURE: Build failed with an exception. * What went wrong:
Execution failed for task ':stripe_stripe-react-native:compileDebugKotlin'.

A failure occurred while executing org.jetbrains.kotlin.compilerRunner.GradleCompilerRunnerWithWorkers$GradleKotlinCompilerWorkAction > Compilation error. See log for more details * Try:
Run with --stacktrace option to get the stack trace.
Run with --info or --debug option to get more log output.
Run with --scan to get full insights.
Get more help at https://help.gradle.org. BUILD FAILED in 24s.
info Run CLI with --verbose flag for more details.

vestal badge
#

Are you using the latest version of stripe-react-native SDK (i.e., 0.44.0)

fierce whale
#

yes:
package.json/dependencies:
"dependencies": {
"@miblanchard/react-native-slider": "^2.6.0",
"@react-native-async-storage/async-storage": "^1.24.0",
"@react-native-community/geolocation": "^3.4.0",
"@react-native-firebase/app": "^21.13.0",
"@react-native-firebase/auth": "^21.13.0",
"@react-native-firebase/messaging": "^21.13.0",
"@react-native-google-signin/google-signin": "^13.1.0",
"@react-native-masked-view/masked-view": "^0.3.1",
"@react-navigation/bottom-tabs": "^7.2.0",
"@react-navigation/native": "^7.0.14",
"@react-navigation/native-stack": "^7.2.0",
"@react-navigation/stack": "^7.1.1",
"@reduxjs/toolkit": "^2.3.0",
"@stripe/stripe-react-native": "^0.44.0",
"axios": "^1.7.7",
"date-fns": "^4.1.0",
"react": "18.3.1",
"react-native": "0.75.4",
"react-native-android-location-enabler": "^2.0.1",
"react-native-calendars": "^1.1310.0",
"react-native-country-codes-picker": "^2.3.5",
"react-native-fbsdk-next": "^13.4.0",
"react-native-flash-message": "^0.4.2",
"react-native-gesture-handler": "^2.21.2",
"react-native-get-random-values": "^1.11.0",
"react-native-gifted-charts": "^1.4.47",
"react-native-gifted-chat": "^2.6.4",
"react-native-image-picker": "^7.1.2",
"react-native-keyboard-controller": "^1.16.8",
"react-native-keychain": "^9.2.2",
"react-native-linear-gradient": "^2.8.3",
"react-native-maps": "^1.20.1",
"react-native-maps-directions": "^1.9.0",
"react-native-permissions": "^5.2.1",
"react-native-reanimated": "^3.16.7",
"react-native-safe-area-context": "^5.0.0",
"react-native-screens": "4.4.0",
"react-native-shared-element": "^0.8.9",
"react-native-size-matters": "^0.4.2",
"react-native-star-rating-widget": "^1.9.1",
"react-native-svg": "^15.10.1",
"react-navigation-shared-element": "^3.1.3",
"react-redux": "^9.1.2",
"socket.io-client": "^4.8.1"
},

vestal badge
#

Ok, another thing you'll want to try is to update the "react-native" sdk to the same version as the version that stripe-react-native uses, which is ^0.78.0

fierce whale
#

but if i will update react native version then i have to update all my packages dependencies that's will cause alot of error if 0.44.0 is incompatible then i can migrate to old 0.40.0 or any you will suggest

vestal badge
#

Yes, that's problem with react-native, you need to manage the dependencies carefully.

fierce whale
#

can i go with another version of stripe ? i mean there should be another way to integrate stripe in my current project

vestal badge
#

You can, but I'll strongly recommend you using the latest version to enjoy more features and bug fixes.

fierce whale
#

please tell me which version is compatible with 0.75 react native i can't update my whole project

vestal badge
#

You can try 0.42.0, it's using react-native "0.69.12"

fierce whale
#

its not working either i tried this before connecting you

vestal badge
#

Hmm. can you share with me a sample react-native project that I can run and reproduce the problem?

high treeBOT
#

Hello @fierce whale, we have sent you a direct message, please check it at https://discord.com/channels/@me/1362332382690152479

  • 🔗The message has instructions on how to open a direct support case with our Developer Support team, in order to help you more effectively.
vestal badge
#

You should see a link in your DM, once you have the project ready, you can use this link to reach out to support , share them the project and they'll esclate the ticket to us. We will continue to support you through email. Is this OK for you?

fierce whale
#

i actually try this a little bit ago when i was talking to you, i shared package.json and build.gradlew and contact email, phone number..

vestal badge
#

Please share the complete project (code, dependecies and configurations) so that we can run and reproduce

high treeBOT
fierce whale
#

okay please wait

vestal badge
#

Discord is public place, so I'd recommend you sharing your project using the link that's DM'ed to you