#junaid_abbasi999

1 messages ยท Page 1 of 1 (latest)

safe wraithBOT
uneven island
#

hello! can you share the full details of the error? I think there should be a "See log for more details"

gilded dome
#

give me a minute.

clear vigil
#

Hi @gilded dome can you share the build.gradle file inside the android folder?

gilded dome
#

// Top-level build file where you can add configuration options common to all sub-projects/modules.

buildscript {
ext {
buildToolsVersion = "33.0.0"
minSdkVersion = 21
compileSdkVersion = 33
targetSdkVersion = 33

    // We use NDK 23 which has both M1 support and is the side-by-side NDK version from AGP.
    ndkVersion = "23.1.7779620"
}
repositories {
    google()
    mavenCentral()
}
dependencies {
    classpath("com.android.tools.build:gradle:7.3.1")
    classpath("com.facebook.react:react-native-gradle-plugin")
    classpath 'com.google.gms:google-services:4.3.14'
}

}

#

these two are the errors that i am getting

#

1: Task 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.
==============================================================================

2: Task failed with an exception.

  • What went wrong:
    java.lang.StackOverflowError (no error message)

  • 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.
==============================================================================

clear vigil
#

There's one more build.gradle file in android/app folder, can you also share that? I'd like to see what kotlin compiler version are you using

gilded dome
clear vigil
#

I don't see kotlin mentioned in neither build.gradle file, can you do a search of kotlin in your project and see if it's enabled somewhere?

gilded dome
#

Yes I didn't see it myself I even searched for Kotlin as you mentioned still didn't get anything...

#

it was working fine untill today...

clear vigil
#

That's very strange. Did you change anything recently?

gilded dome
#

no I didn't just tried to build my project today and got this error.

clear vigil
#

Did you update Android Studio or any dependencies?

gilded dome
#

nothing......

clear vigil
#

Run ./gradlew clean in your android project to clear the build cache, and build your project again

gilded dome
#

already done...

clear vigil
#

Run ./gradlew --info build and see if it give us more info about the error

gilded dome
#

still same thing bro

#

same errors hapening

clear vigil
#

Clean the gradle cache from /Users/junaidabbasi/.gradle/, reboot your machine and try again?

#

I really don't understand why the gradle execute the kotlin task if your project didn't enable kotlin.

gilded dome
#

bro still not fixed.