#muhammad-asim_unexpected

1 messages · Page 1 of 1 (latest)

nova walrusBOT
#

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

slow mirage
#

Hi! Can I have the full error please? Thanks!

open pecan
#

./gradlew clean runs sucessfully but failed in run android

slow mirage
#

Was there a reason why you updated the kotlin?

open pecan
slow mirage
#

Are you running into the same error as the GitHub issue?

open pecan
#

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

slow mirage
#

Give is some time to look into this.

open pecan
#

okay

open pecan
#

how much time you take for it??

slow mirage
#

Apologies! My team mate is looking into it. I will try to get back to you soon.

fair glade
#

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?

open pecan
#

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

fair glade
#
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?

open pecan
#

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

fair glade
#

So what changes did you make in your project?

open pecan
#

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

fair glade
#

No you shouldn't add a dummy buttonclass, You should do a pod install in your iOS folder to retrieve new pods depdendencies.

open pecan
#

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

fair glade
#

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?

open pecan
#

//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"

fair glade
open pecan
#

can i copy whole file or some part??

open pecan
#

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

slow mirage
#

Apologies! Give us a moment.

fair glade
open pecan
#

with condition??

nova walrusBOT
open pecan
#

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.

fair glade
#

change kotlin_version to kotlinVersion

open pecan
#

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

fair glade
#

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?

open pecan
#

i have big project and confidential and if new project not have the same issue so

fair glade
#

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.

old sleet
#

Hey, taking over here. Let me know if there's any follow-up Qs I can answer!

open pecan
#

give me some moment

nova walrusBOT