Detected multiple kotlin daemon sessions at build kotlin sessions

w: Detected multiple Kotlin daemon sessions at build/kotlin/sessions

Solved this issue by deleting the .gradle folder from /android and again run npm run android, and it solved this error.

Solution 2

What resolved this error for me, was killing all running Java processes in Task Manager.

I had an actual bug in my code, which caused dangling processes, so I was getting only this error and not the one related to the bug.

After killing all processes & running the usual gradle cleanup, I got the right error message I could work with further.

Solution 3

I solve this issue with this solution.

In gradle.properties add following code

org.gradle.daemon=true org.gradle.configureondemand=true org.gradle.jvmargs=-Xmx4g -XX:MaxPermSize=2048m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8 

Additionally, insert these lines in app/build.gradle

After making these changes run .\gradle clean and .\gradle assembleRelease

TommyLeong

TommyLeong

Comments

TommyLeong

> Task :app:mergeDexRelease FAILED java.nio.file.NoSuchFileException: /Users/path/Desktop/project/android/app/build/intermediates/external_file_lib_dex_archives/release/out at java.base/sun.nio.fs.UnixException.translateToIOException(UnixException.java:92) at java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:111) at java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:116) at java.base/sun.nio.fs.UnixFileSystemProvider.newDirectoryStream(UnixFileSystemProvider.java:412) at java.base/java.nio.file.Files.newDirectoryStream(Files.java:472) at java.base/java.nio.file.Files.list(Files.java:3699) at com.android.build.gradle.internal.tasks.DexMergingParams.getAllDexFiles(DexMergingTask.kt:502) at com.android.build.gradle.internal.tasks.DexMergingTaskRunnable.run(DexMergingTask.kt:423) at com.android.build.gradle.internal.tasks.Workers$ActionFacade.run(Workers.kt:335) at org.gradle.workers.internal.AdapterWorkAction.execute(AdapterWorkAction.java:57) at org.gradle.workers.internal.DefaultWorkerServer.execute(DefaultWorkerServer.java:63) at org.gradle.workers.internal.NoIsolationWorkerFactory$1$1.create(NoIsolationWorkerFactory.java:66) at org.gradle.workers.internal.NoIsolationWorkerFactory$1$1.create(NoIsolationWorkerFactory.java:62) at org.gradle.internal.classloader.ClassLoaderUtils.executeInClassloader(ClassLoaderUtils.java:98) at org.gradle.workers.internal.NoIsolationWorkerFactory$1.lambda$execute$0(NoIsolationWorkerFactory.java:62) at org.gradle.workers.internal.AbstractWorker$1.call(AbstractWorker.java:44) at org.gradle.workers.internal.AbstractWorker$1.call(AbstractWorker.java:41) at org.gradle.internal.operations.DefaultBuildOperationExecutor$CallableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:416) at org.gradle.internal.operations.DefaultBuildOperationExecutor$CallableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:406) at org.gradle.internal.operations.DefaultBuildOperationExecutor$1.execute(DefaultBuildOperationExecutor.java:165) at org.gradle.internal.operations.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:250) at org.gradle.internal.operations.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:158) at org.gradle.internal.operations.DefaultBuildOperationExecutor.call(DefaultBuildOperationExecutor.java:102) at org.gradle.internal.operations.DelegatingBuildOperationExecutor.call(DelegatingBuildOperationExecutor.java:36) at org.gradle.workers.internal.AbstractWorker.executeWrappedInBuildOperation(AbstractWorker.java:41) at org.gradle.workers.internal.NoIsolationWorkerFactory$1.execute(NoIsolationWorkerFactory.java:59) at org.gradle.workers.internal.DefaultWorkerExecutor.lambda$submitWork$2(DefaultWorkerExecutor.java:198) at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) at org.gradle.internal.work.DefaultConditionalExecutionQueue$ExecutionRunner.runExecution(DefaultConditionalExecutionQueue.java:215) at org.gradle.internal.work.DefaultConditionalExecutionQueue$ExecutionRunner.runBatch(DefaultConditionalExecutionQueue.java:164) at org.gradle.internal.work.DefaultConditionalExecutionQueue$ExecutionRunner.run(DefaultConditionalExecutionQueue.java:131) at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515) at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:64) at org.gradle.internal.concurrent.ManagedExecutorImpl$1.run(ManagedExecutorImpl.java:48) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) at org.gradle.internal.concurrent.ThreadFactoryImpl$ManagedThreadRunnable.run(ThreadFactoryImpl.java:56) at java.base/java.lang.Thread.run(Thread.java:834) w: Detected multiple Kotlin daemon sessions at build/kotlin/sessions FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':app:mergeDexRelease'. > A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade > java.nio.file.NoSuchFileException: /Users/path/Desktop/project/android/app/build/intermediates/external_file_lib_dex_archives/release/out 

Some story

During the debugging of this «multiple Koltin» issue, I found out that my NDK wasn’t install. Hence I went to SDK Manager and install the NDK (Side by side) . Then issue of toolchain occurred, shown as below.

No toolchains found in the NDK toolchains folder for ABI with prefix: arm-linux-androideabi 

Fixed was done by downloading older NDK version, android-ndk-r19c and pointed the NDK path in my local.properties. Local.properties

sdk.dir=/Users/path/Library/Android/sdk ndk.dir=/Users/path/Library/Android/android-ndk-r19c 

TLDR

# FILE 1: Gradle.properties org.gradle.jvmargs=-Xmx4096m -XX:MaxPermSize=1024m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8 # FILE 2: app/build.gradle ( under android<> ) dexOptions
react: 16.13.1 => 16.13.1 react-native: 0.63.2 => 0.63.2 

Any idea what causes this issue and how to fix this? 🆘

Читайте также:  Programs in java using arrays

Источник

Saved searches

Use saved searches to filter your results more quickly

You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session.

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

Module breaks Android build: Detected multiple Kotlin daemon sessions at build/kotlin/sessions & other errors #8

Module breaks Android build: Detected multiple Kotlin daemon sessions at build/kotlin/sessions & other errors #8

Comments

I’m glad I found your package as it’s exactly what I am looking for. But after installing the module, my Android build stops working. Here’s the console output:

The Kotlin Gradle plugin was loaded multiple times in different subprojects, which is not supported and may break the build. This might happen in subprojects that apply the Kotlin plugins with the Gradle 'plugins < . >' DSL if they specify explicit versions, even if the versions are equal. Please add the Kotlin plugin to the common parent project or the root project, then remove the versions in the subprojects. If the parent project does not need the plugin, add 'apply false' to the plugin line. See: https://docs.gradle.org/current/userguide/plugins.html#sec:subprojects_plugins_dsl The Kotlin plugin was loaded in the following projects: ':expo-image-loader', ':react-native-animateable-text' . > Task :react-native-animateable-text:compileDebugJavaWithJavac FAILED w: Detected multiple Kotlin daemon sessions at build/kotlin/sessions . Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0. Use '--warning-mode all' to show the individual deprecation warnings. See https://docs.gradle.org/6.2/userguide/command_line_interface.html#sec:command_line_warnings 236 actionable tasks: 4 executed, 232 up-to-date /Users/lennart/Projects/weburn/node_modules/react-native-animateable-text/android/src/main/java/com/reactnativereanimatedtext/JBTextViewManager.java:112: error: cannot find symbol TextAttributeProps.getTextAlignment(props, TextLayoutManager.isRTL(attributedString)), ^ symbol: method isRTL(ReadableMap) location: class TextLayoutManager /Users/lennart/Projects/weburn/node_modules/react-native-animateable-text/android/src/main/java/com/reactnativereanimatedtext/JBTextViewManager.java:124: error: method does not override or implement a method from a supertype @Override ^ /Users/lennart/Projects/weburn/node_modules/react-native-animateable-text/android/src/main/java/com/reactnativereanimatedtext/JBTextViewManager.java:145: error: incompatible types: float[] cannot be converted to int[] attachmentsPositions); ^ Note: /Users/lennart/Projects/weburn/node_modules/react-native-animateable-text/android/src/main/java/com/reactnativereanimatedtext/JBTextShadowNode.java uses or overrides a deprecated API. Note: Recompile with -Xlint:deprecation for details. Note: Some input files use unchecked or unsafe operations. Note: Recompile with -Xlint:unchecked for details. Note: Some messages have been simplified; recompile with -Xdiags:verbose to get full output 3 errors 

I’m using the following module versions:

«react-native-animateable-text»: «^0.6.0»
«react-native»: «0.63.4»,
«react-native-reanimated»: «^2.0.0-rc.3»,
«expo-image-picker»: «~9.2.1»,
«react-native-unimodules»: «~0.12.0»

Is there anything else you need to know?

Читайте также:  rotate()

Commenting out the apply plugin ‘kotlin-android’ in the module’s build.gradle and then running yarn again seems to resolve the first part of the error message. The build still fails because of the 3 other error messages.

. apply plugin: 'com.android.library' // apply plugin: 'kotlin-android' . 

The text was updated successfully, but these errors were encountered:

Источник

Saved searches

Use saved searches to filter your results more quickly

You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session.

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

> Task :app:processDebugResources FAILED w: Detected multiple Kotlin daemon sessions at build/kotlin/sessions Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0. #35688

> Task :app:processDebugResources FAILED w: Detected multiple Kotlin daemon sessions at build/kotlin/sessions Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0. #35688

Comments

Description

run ./gradlew —warning-mode all

Configure project :app
IncrementalTaskInputs has been deprecated. This is scheduled to be removed in Gradle 8.0. On method ‘IncrementalTask.taskAction$gradle_core’ use ‘org.gradle.work.InputChanges’ instead. Consult the upgrading guide for further information: https://docs.gradle.org/7.5.1/userguide/upgrading_version_7.html#incremental_task_inputs_deprecation
at react_7phk1yqu1tkfobut62as3a0h3$_run_closure8$_closure11$_closure14.doCall(/Volumes/HPP500/project/ReactNative/RNCmpanda/node_modules/react-native/react.gradle:395)
(Run with —stacktrace to get the full stack trace of this deprecation warning.)

Version

Output of npx react-native info

OS: macOS ventura 13.1
CPU: (8) x64 Intel(R) Core(TM) i7-8557U CPU @ 1.70GHz
Memory: 2.16 GB / 16.00 GB
Shell: 5.8.1 — /bin/zsh
Binaries:
Node: 18.12.1 — /usr/local/bin/node
Yarn: Not Found
npm: 8.19.2 — /usr/local/bin/npm
Watchman: 2022.12.12.00 — /usr/local/bin/watchman
Managers:
CocoaPods: 1.11.3 — /usr/local/bin/pod
SDKs:
iOS SDK:
Platforms: DriverKit 22.2, iOS 16.2, macOS 13.1, tvOS 16.1, watchOS 9.1
Android SDK: Not Found
IDEs:
Android Studio: 2021.3 AI-213.7172.25.2113.9123335
Xcode: 14.2/14C18 — /usr/bin/xcodebuild
Languages:
Java: 11.0.17 — /usr/bin/javac
npmPackages:
@react-native-community/cli: Not Found
react: 18.1.0 => 18.1.0
react-native: 0.70.6 => 0.70.6
react-native-macos: Not Found
npmGlobalPackages:
react-native: Not Found

Читайте также:  Eschool dn ua login index php

Steps to reproduce

The text was updated successfully, but these errors were encountered:

Источник

Оцените статью