react-native-screens
react-native-screens copied to clipboard
Execution failed for task ':react-native-screens:compileDebugKotlin'.
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
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?
same error, fixed by add import at MainActivity.kt file
import android.os.Bundle
Hey @yantl0, would you mind posting whole stack trace so that we can see what exactly causes the error to happen?
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
the issue is specifically for the version of react native and react-native-screens mentioned above.
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.
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 :)
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.
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