#muhammad-asim_unexpected
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/1374248055792205885
📝 Have more to share? Add more details, code, screenshots, videos, etc. below.
Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.
- muhammad-asim_unexpected, 3 days ago, 36 messages
Hi! Can I have the full error please? Thanks!
Was there a reason why you updated the kotlin?
before update it not gonna run the clean command i read this
https://github.com/stripe/stripe-react-native/issues/1924#issuecomment-2867227374
btw i am using CLI
Are you running into the same error as the GitHub issue?
i am again send you my previous erorr when kotlin version is not update
before update when i run clean command then this error occur
Configure project :react-native-reanimated
Android gradle plugin: 8.8.0
Gradle: 8.11
[Incubating] Problems report is available at: file:///Users/mac/Documents/ToolBox/android/build/reports/problems/problems-report.html
FAILURE: Build failed with an exception.
- What went wrong:
A problem occurred configuring project ':stripe_stripe-react-native'.
Starting in Kotlin 2.0, the Compose Compiler Gradle plugin is required
when compose is enabled. See the following link for more information:
https://d.android.com/r/studio-ui/compose-compiler
- 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.
Deprecated Gradle features were used in this build, making it incompatible with Gradle 9.0.
You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.
For more on this, please refer to https://docs.gradle.org/8.11/userguide/command_line_interface.html#sec:command_line_warnings in the Gradle documentation.
BUILD FAILED in 8s
Give is some time to look into this.
okay
how much time you take for it??
Apologies! My team mate is looking into it. I will try to get back to you soon.
Hi @open pecan I'm Jack and I'm also an engineer from Stripe.
Thanks for waiting. Based on the error message that you shared earlier. Looks like the error is related to react-native-reanimated, can you remove it from the dependencies and see if the compilation gives a different result?
What went wrong:,
A problem occurred configuring project ':stripe_stripe-react-native'.
Starting in Kotlin 2.0, the Compose Compiler Gradle plugin is required
when compose is enabled. See the following link for more information:
stripe issue not reanimated
Configure project :react-native-reanimated
Android gradle plugin: 8.8.0
Gradle: 8.11
[Incubating] Problems report is available at: file:///Users/mac/Documents/ToolBox/android/build/reports/problems/problems-report.html
FAILURE: Build failed with an exception.```
This is the error the you shared earlier. Am I correct to say that your project already has the compilation problem before upgrading to the new stripe-react-native SDK?
no it's wroking fine before and now i uninstall the react native reanimated again give the same issue
FAILURE: Build failed with an exception.
- What went wrong:
A problem occurred configuring project ':stripe_stripe-react-native'.
Starting in Kotlin 2.0, the Compose Compiler Gradle plugin is required
when compose is enabled. See the following link for more information:
https://d.android.com/r/studio-ui/compose-compiler
So what changes did you make in your project?
i am just update my stripe react native package 0.46 and it cause the googlebuttoncls issue in ios i fix this by add dummy buttonclass in ios folder now my ios working fine and crash issue fixed
after this now i want to make a build of my android it give kotlin version issue if i update this clean command work fine but when run for android buid failed
No you shouldn't add a dummy buttonclass, You should do a pod install in your iOS folder to retrieve new pods depdendencies.
if not update kotlin version in build.graddle file clean command also failed
now it;s issue in my android not in ios
ios is working fine
Again, the proper way to fix the ios compilation error is do a pod install in your iOS folder. Your project is still using the old version of Stripe iOS SDK.
Can you share with me your build.gradle file?
//root folder build.graddle
buildscript {
ext {
buildToolsVersion = "35.0.0"
minSdkVersion = 24
compileSdkVersion = 35
targetSdkVersion = 34
ndkVersion = "26.1.10909125"
kotlinVersion = "1.9.24"
playServicesLocationVersion = "21.0.1"
}
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'
}
}
apply plugin: "com.facebook.react.rootproject"
app level
You didn't add compose compiler in the build.gradle. Use the build.gradle from stripe-react-native SDK as an example.
https://github.com/stripe/stripe-react-native/blob/master/android/build.gradle
can i copy whole file or some part??
can you please send me the updated file of build.gradle according to my file
i use the same build.graddle you provide but issue remains the same
- 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:
this error occur when i update the kotlin version 2
Apologies! Give us a moment.
@open pecan you don't need to copy the whole thing. https://github.com/stripe/stripe-react-native/blob/master/android/build.gradle#L21 this line of code add compose compiler to the gradle
with condition??
buildscript {
ext {
buildToolsVersion = "35.0.0"
minSdkVersion = 24
compileSdkVersion = 35
targetSdkVersion = 34
ndkVersion = "26.1.10909125"
kotlinVersion = "1.9.24"
playServicesLocationVersion = "21.0.1"
}
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:compose-compiler-gradle-plugin:$kotlin_version"
}
}
apply plugin: "com.facebook.react.rootproject"
after this issue
-
Where:
Build file '/Users/mac/Documents/ToolBox/android/build.gradle' line: 20 -
What went wrong:
A problem occurred evaluating root project 'ToolBox'.
Could not get unknown property 'kotlin_version' for object of type org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler.
- 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.
change kotlin_version to kotlinVersion
FAILURE: Build failed with an exception.
- What went wrong:
A problem occurred configuring project ':stripe_stripe-react-native'.
Starting in Kotlin 2.0, the Compose Compiler Gradle plugin is required
when compose is enabled. See the following link for more information:
https://d.android.com/r/studio-ui/compose-compiler
- 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.
Deprecated Gradle features were used in this build, making it incompatible with Gradle 9.0.
You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.
For more on this, please refer to https://docs.gradle.org/8.11/userguide/command_line_interface.html#sec:command_line_warnings in the Gradle documentation.
after this another issue occur
Looks like the same error to me.
Can you share with me a sample react-native app that we can run and reproduce the issue?
i have big project and confidential and if new project not have the same issue so
Then you'll want to compare the difference between the exsiting project and the new project, and see which part of the configuratoins of the existing project causing the problem.
Hey, taking over here. Let me know if there's any follow-up Qs I can answer!
give me some moment