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
Detected multiple Kotlin daemon sessions at build/kotlin/sessions in every build #33488
Comments
Hi, this has happened to me before and is due to multiple versions of kotlin being used on build time. to fix this problem you have to set a Kotlin version on your project level build grade buildscript {
ext {
// ...
kotlin_version = '1.6.10' // <- add this line
}
dependencies {
// ...
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" // <- add this line
// ...
}
} |
Hello @raulmax319 , thank you for the answer. I tried to do it, but still showing the problem reported in the topic :/ |
buildscript {
} |
@gabrielporcher Could you provide the dependencies listed in your package.json please? I want to reproduce this problem on my machine. |
That's a warning in the build, but it's not the real issue. The problem is that your build is failing with:
You need to increase the memory in your
or more than 2048 if the issue keeps on happening |
Hi, I'm sorry to be away these last few days. combining the solution of @raulmax319 and @cortinico I was able to solve my problem. |
seems running |
@ramyareye Thanks for sharing, that works for me too! |
but when i add this modifications i got this error Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0. You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins. See https://docs.gradle.org/7.3.3/userguide/command_line_interface.html#sec:command_line_warnings FAILURE: Build failed with an exception.
|
use ./gradlew clean then your rebuild |
have you fixed it yet? |
This worked |
did it work for anyone on react native version 0.71.9? For me not |
I am on 0.71.12 and it dint work for me |
* Specify kotlin version, update podfile dep facebook/react-native#33488 * Forces new build and ignore the cache for Android * Skip cache if force-build * Remove temporary debug feature * Revert podfile change * Define kotlin version in gradle property variable
Description
Hello.
i've been having these problems for weeks with kotlin daemon sessions and it's driving me crazy.
Since I started my project (about 2 months ago) every time I need to do a new build this error happens. So I need to delete the .gradle and build files (on android) and after that clean cache to run the app.
However, after the last time this happened I couldn't solve it anymore, making it impossible for me to work for 2 days.
Apparently it's something related to react navigation dependencies (gesture handler / rnscreens) but I didn't get an answer about it anywhere.
I've already tried to make a new application from scratch and use version 5 of react navigation, but a very similar problem occurs.
Following is the error log:
Version
0.67.2
Output of
npx react-native info
System:
OS: Linux 5.13 Ubuntu 20.04.1 LTS (Focal Fossa)
CPU: (8) x64 Intel(R) Core(TM) i5-8250U CPU @ 1.60GHz
Memory: 150.90 MB / 11.60 GB
Shell: 5.0.17 - /bin/bash
Binaries:
Node: 12.22.1 - ~/.nvm/versions/node/v12.22.1/bin/node
Yarn: 1.22.11 - /usr/bin/yarn
npm: 6.14.12 - ~/.nvm/versions/node/v12.22.1/bin/npm
Watchman: Not Found
SDKs:
Android SDK:
API Levels: 29, 30
Build Tools: 28.0.3, 29.0.2, 30.0.2, 30.0.3
System Images: android-29 | Google Play Intel x86 Atom, android-30 | Google APIs Intel x86 Atom
Android NDK: Not Found
IDEs:
Android Studio: Not Found
Languages:
Java: 11.0.14 - /usr/bin/javac
npmPackages:
@react-native-community/cli: Not Found
react: 17.0.2 => 17.0.2
react-native: 0.67.2 => 0.67.2
npmGlobalPackages:
react-native: Not Found
Steps to reproduce
Init a new project
Install react navigation
Try to build
get this error
Snack, code example, screenshot, or link to a repository
I cant provide a code example because my app doesnt even run :)
The text was updated successfully, but these errors were encountered: