Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A failure occurred while executing org.jetbrains.kotlin.compilerRunner.GradleCompilerRunnerWithWorkers$GradleKotlinCompilerWorkAction #7818

Open
1 task done
Harisene opened this issue Dec 6, 2023 · 52 comments

Comments

@Harisene
Copy link

Harisene commented Dec 6, 2023

What happened?

I recently updated the RN version to 0.72.7. When I try to build the Android app I get the error as mentioned below.

What was the expected behaviour?

No response

Was it tested on latest react-native-navigation?

  • I have tested this issue on the latest react-native-navigation release and it still reproduces.

Help us reproduce this issue!

Here is the error message from the terminal

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':react-native-navigation:compileReactNative62DebugKotlin'.
> 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 2m

In what environment did this happen?

React Native Navigation version: 7.37.2
React Native version: 0.72.7
Has Fabric (React Native's new rendering system) enabled: (yes/no) no
Node version: 18.11.0
Java version: 11
Kotlin version: 1.8.22
Gradle version: 8.0.1
Device model:
Android version:

@HaNguyenRN
Copy link

+1

@StragelX
Copy link

Got the same issue((( any updates on this?

@Harisene
Copy link
Author

Try changing the Kotlin version. It could work. Not sure though.

@shafikgomez
Copy link

+1

@lwazi4787
Copy link

No one has the solution yet?

@Harisene
Copy link
Author

I could not find a solution. Updating the RN version was a dead end for me. So then I had to create a new RN project

@lwazi4787
Copy link

Did that work?

@Harisene
Copy link
Author

yes

@Ahmad0811
Copy link

+1

2 similar comments
@mohanft
Copy link

mohanft commented Jan 5, 2024

+1

@marcelo-conilho
Copy link

+1

@Aryaman3007
Copy link

Anyone got the solution?

@jeanmrtns
Copy link

I'm facing the same issue. I'd love some help

@davidwinograd1
Copy link

same issue. any fixes?

@ravis-farooq
Copy link

By adding these two lines in build.gradle fixed the problem for me

apply from: file("../../node_modules/@react-native-community/cli-platform-android/native_modules.gradle"); applyNativeModulesAppBuildGradle(project)
apply from: "../../node_modules/react-native-vector-icons/fonts.gradle"

@amanRathod
Copy link

+1

@Varapraveen
Copy link

Hi, i am getting same kind of error in native Android , how to solve it /

@aahilalwani25
Copy link

I am getting the same error. Does anyone know how to resolve?

@aswin-clear
Copy link

+1

1 similar comment
@binhtruong9418
Copy link

+1

@lucianolopezz
Copy link

I am getting same error after upgrade expo sdk 50

@Ammar-Abid92
Copy link

Facing the same issue in expo 47

@safaaroua
Copy link

+1

4 similar comments
@Shudhanshu-Appnox
Copy link

+1

@ehcorrea
Copy link

ehcorrea commented Mar 1, 2024

+1

@gustavos00
Copy link

+1

@ayoubechc
Copy link

+1

@AlexVz95
Copy link

AlexVz95 commented Mar 6, 2024

+1

2 similar comments
@SheikhSajad
Copy link

+1

@Darmolar
Copy link

+1

@artpersona
Copy link

  • 1

@AntonioAdelino
Copy link

+1

@ayoubechc
Copy link

for me is a problem of syntax in mainActivity.jkt ans mainApplication.jkt

@robimuller
Copy link

+1

3 similar comments
@sidpremkumar
Copy link

+1

@tiagomelilo
Copy link

+1

@victorlucss
Copy link

+1

@Elvin2019
Copy link

In my case, I forgot to update fabricEnabled in MainActivity.kt.

@SergioWiesner
Copy link

Tengo el mismo problema

  • Where:
    Build file '/Users/user/Proyectos/pccom/android/build.gradle' line: 32

  • What went wrong:
    A problem occurred evaluating root project 'pccom'.

Could not read script '/Users/user/Proyectos/node_modules/@react-native-community/cli-platform-android/native_modules.gradle' as it does not exist.

@Buddhaa97
Copy link

same issue

@Brody234
Copy link

Brody234 commented Apr 9, 2024

This isn't an ideal fix, but after playing around with it for a few hours, I was able to get the issue to go away by uninstalling expo-updates. I installed and uninstalled so many dependencies and went through so many errors, that I have no idea if this is replicable, but where this has been going on for months I figured I'd drop this in so someone who knows what they're doing more can have a clue as to what to do to fix this.

@tuanduc2904
Copy link

same issue

@romualdbrsn
Copy link

+1

3 similar comments
@julienclaerhout
Copy link

+1

@alexarruda
Copy link

+1

@Gavru4
Copy link

Gavru4 commented Apr 26, 2024

+1

@shreypdev
Copy link

Any updates? having same issue

@jesuscast
Copy link

Paste more of the stack trace, it will help debug

@jesuscast
Copy link

In our specific case using Expo, the issue was the target sdk version. For expo 50 it needs to be SDK 34
in app.json

"targetSdkVersion": 34

Essentially, if the target is different, the gradle will fail to build. But it can also fail for many other reasons. But I cannot tell about your issue without a more complete stacktrace.

@iZenrix
Copy link

iZenrix commented May 7, 2024

help :)

@Osamasomy
Copy link

Osamasomy commented May 9, 2024

same issue

"react-native": "0.74.1",
"react-native-vision-camera": "^4.0.3",

* What went wrong:
Execution failed for task ':react-native-vision-camera:compileDebugKotlin'.
> A failure occurred while executing org.jetbrains.kotlin.compilerRunner.GradleCompilerRunnerWithWorkers$GradleKotlinCompilerWorkAction

@GalMarkelj
Copy link

Same issue as @Osamasomy

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests