wix / react-native-navigation

A complete native navigation solution for React Native
https://wix.github.io/react-native-navigation/
MIT License
13.01k stars 2.68k forks source link

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

Open Harisene opened 7 months ago

Harisene commented 7 months ago

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?

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 commented 6 months ago

+1

StragelX commented 6 months ago

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

Harisene commented 6 months ago

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

shafikgomez commented 6 months ago

+1

lwazi4787 commented 6 months ago

No one has the solution yet?

Harisene commented 6 months ago

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 commented 6 months ago

Did that work?

Harisene commented 6 months ago

yes

Ahmad0811 commented 6 months ago

+1

mohanft commented 6 months ago

+1

marcelo-conilho commented 6 months ago

+1

Aryaman3007 commented 6 months ago

Anyone got the solution?

jeanmrtns commented 5 months ago

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

davidwinograd1 commented 5 months ago

same issue. any fixes?

ravis-farooq commented 5 months ago

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 commented 5 months ago

+1

Varapraveen commented 5 months ago

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

aahilalwani25 commented 5 months ago

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

aswin-clear commented 4 months ago

+1

binhtruong9418 commented 4 months ago

+1

lucianolopezz commented 4 months ago

I am getting same error after upgrade expo sdk 50

Ammar-Abid92 commented 4 months ago

Facing the same issue in expo 47

safaaroua commented 4 months ago

+1

Shudhanshu-Appnox commented 4 months ago

+1

ehcorrea commented 4 months ago

+1

gustavos00 commented 4 months ago

+1

ayoubechc commented 4 months ago

+1

AlexVz95 commented 4 months ago

+1

SheikhSajad commented 4 months ago

+1

Darmolar commented 4 months ago

+1

artpersona commented 4 months ago
AntonioAdelino commented 4 months ago

+1

ayoubechc commented 4 months ago

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

robimuller commented 4 months ago

+1

sidpremkumar commented 4 months ago

+1

tiagomelilo commented 4 months ago

+1

victorlucss commented 3 months ago

+1

Elvin2019 commented 3 months ago

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

SergioWiesner commented 3 months ago

Tengo el mismo problema

Buddhaa97 commented 3 months ago

same issue

Brody234 commented 3 months ago

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 commented 3 months ago

same issue

romualdbrsn commented 2 months ago

+1

julienclaerhout commented 2 months ago

+1

alexarruda commented 2 months ago

+1

Gavru4 commented 2 months ago

+1

shreypdev commented 2 months ago

Any updates? having same issue

jesuscast commented 2 months ago

Paste more of the stack trace, it will help debug

jesuscast commented 2 months ago

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 commented 2 months ago

help :)