react-native-screens icon indicating copy to clipboard operation
react-native-screens copied to clipboard

Execution failed for task ':react-native-screens:compileDebugKotlin'.

Open sirusbaladi opened this issue 5 months ago • 5 comments

Description

When running eas build for android specifically I'm getting a build error in the gradlew.

I'm using managed expo. I tried changing kotlin version to 1.6.21 and 1.8.0 but no success so far. here are my settings: compileSdkVersion: 34, targetSdkVersion: 34, buildToolsVersion: "34.0.0", kotlinVersikon: "1.6.21",

Detected multiple Kotlin daemon sessions at build/kotlin/sessions

  • What went wrong: Execution failed for task ':react-native-screens:compileDebugKotlin'.

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

Steps to reproduce

run eas build for android

Snack or a link to a repository

N/A

Screens version

"~3.20.0"

React Native version

0.71.14

Platforms

Android

JavaScript runtime

None

Workflow

Expo managed workflow

Architecture

None

Build type

None

Device

None

Device model

No response

Acknowledgements

Yes

sirusbaladi avatar Mar 12 '24 15:03 sirusbaladi

Hey! 👋

The issue doesn't seem to contain a minimal reproduction.

Could you provide a snack or a link to a GitHub repository under your username that reproduces the problem?

github-actions[bot] avatar Mar 12 '24 15:03 github-actions[bot]

same error, fixed by add import at MainActivity.kt file

import android.os.Bundle

yantl0 avatar Mar 14 '24 03:03 yantl0

Hey @yantl0, would you mind posting whole stack trace so that we can see what exactly causes the error to happen?

kkafar avatar Mar 14 '24 07:03 kkafar

same error, fixed by add import at MainActivity.kt file

import android.os.Bundle

I can't do that as i'm using a manged expo environment

sirusbaladi avatar Mar 14 '24 16:03 sirusbaladi

the issue is specifically for the version of react native and react-native-screens mentioned above.

sirusbaladi avatar Mar 14 '24 16:03 sirusbaladi

I think this might be due to some issue with using an old version of cmake.

cmake_minimum_required(VERSION 3.13)

When I install the latest version of cmake via Android studio I can see in the Android Studio SDK manager that it installed an older version, 1.18.1.

Screenshot 2024-04-03 at 09 50 14

Now, even if I uninstall the older version and set the cmake_minimum_required(VERSION 3.6.4111459) I cannot get it to work. It still installs the old version and I cannot get it to compile with the later version resulting in the compile issues.

Maybe I'm missing something with caching when I build or something? I have been stuck on this for way too long :)

victor-axelsson avatar Apr 03 '24 07:04 victor-axelsson

To provide you with any help I would require you to provide me with any information about the error. All I know up to today is that you have some problems building application, no actual reproduction, no stacktrace, no insights.

kkafar avatar Apr 12 '24 14:04 kkafar

Today I also faced this problem. What I didn't do, nothing helped. It turned out that the previous developer added to the project, but did not use it, so I just deleted this package, and everything worked right away

Nikitashalimov avatar Apr 25 '24 21:04 Nikitashalimov

I'm closing this ticket due to lacks described above.

Ping me if the situation changes.

kkafar avatar Apr 27 '24 17:04 kkafar