> Task :haicycle:compileDebugKotlin
Compilation with Kotlin compile daemon was not successful
java.rmi.UnmarshalException: Error unmarshaling return header; nested exception is:
java.net.SocketException: Connection reset
at java.rmi/sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:254)
at java.rmi/sun.rmi.server.UnicastRef.invoke(UnicastRef.java:164)
at java.rmi/java.rmi.server.RemoteObjectInvocationHandler.invokeRemoteMethod(RemoteObjectInvocationHandler.java:217)
at java.rmi/java.rmi.server.RemoteObjectInvocationHandler.invoke(RemoteObjectInvocationHandler.java:162)
at com.sun.proxy.$Proxy123.compile(Unknown Source)
at org.jetbrains.kotlin.compilerRunner.GradleKotlinCompilerWork.incrementalCompilationWithDaemon(GradleKotlinCompilerWork.kt:291)
at org.jetbrains.kotlin.compilerRunner.GradleKotlinCompilerWork.compileWithDaemon(GradleKotlinCompilerWork.kt:214)
at org.jetbrains.kotlin.compilerRunner.GradleKotlinCompilerWork.compileWithDaemonOrFallbackImpl(GradleKotlinCompilerWork.kt:151)
... 144 more
Caused by: java.net.SocketException: Connection reset
Unable to clear jar cache after compilation, maybe daemon is already down: java.rmi.ConnectException: Connection refused to host: 127.0.0.1; nested exception is:
java.net.ConnectException: Connection refused: connect
Could not connect to kotlin daemon. Using fallback strategy.
#
OpenJDK 64-Bit Server VM warning: INFO: os::commit_memory(0x000000008fc00000, 42991616, 0) failed; error='???????��?????????????' (DOS error/errno=1455)
# There is insufficient memory for the Java Runtime Environment to continue.
# Native memory allocation (mmap) failed to map 42991616 bytes for Failed to commit area from 0x000000008fc00000 to 0x0000000092500000 of length 42991616.
# An error report file with more information is saved as:
# E:\Android\office\hs_err_pid13896.log
> Task :haicycle:compileDebugKotlin FAILED
FAILURE: Build completed with 9 failures.
1: Task failed with an exception.
-----------
* What went wrong:
Execution failed for task ':app:dataBindingMergeGenClassesDebug'.
> Could not resolve all files for configuration ':app:debugCompileClasspath'.
> Failed to transform runtime-2.0.0.aar (androidx.room:room-runtime:2.0.0) to match attributes {artifactType=android-databinding-class-log, org.gradle.status=release}.
> Could not find runtime-2.0.0.aar (androidx.room:room-runtime:2.0.0).
Searched in the following locations:
https://dl.google.com/dl/android/maven2/androidx/room/room-runtime/2.0.0/runtime-2.0.0.aar
* 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.
==============================================================================
2: Task failed with an exception.
-----------
* What went wrong:
Execution failed for task ':app:mergeDebugResources'.
> Could not resolve all files for configuration ':app:debugRuntimeClasspath'.
> Failed to transform runtime-2.0.0.aar (androidx.room:room-runtime:2.0.0) to match attributes {artifactType=android-res, org.gradle.status=release}.
> Could not find runtime-2.0.0.aar (androidx.room:room-runtime:2.0.0).
Searched in the following locations:
https://dl.google.com/dl/android/maven2/androidx/room/room-runtime/2.0.0/runtime-2.0.0.aar
* 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.
==============================================================================
3: Task failed with an exception.
-----------
* What went wrong:
Execution failed for task ':app:checkDebugAarMetadata'.
> Could not resolve all files for configuration ':app:debugRuntimeClasspath'.
> Failed to transform runtime-2.0.0.aar (androidx.room:room-runtime:2.0.0) to match attributes {artifactType=android-aar-metadata, org.gradle.status=release}.
> Could not find runtime-2.0.0.aar (androidx.room:room-runtime:2.0.0).
Searched in the following locations:
https://dl.google.com/dl/android/maven2/androidx/room/room-runtime/2.0.0/runtime-2.0.0.aar
* 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.
==============================================================================
4: Task failed with an exception.
-----------
* What went wrong:
Execution failed for task ':app:mergeDebugAssets'.
> Could not resolve all files for configuration ':app:debugRuntimeClasspath'.
> Failed to transform runtime-2.0.0.aar (androidx.room:room-runtime:2.0.0) to match attributes {artifactType=android-assets, org.gradle.status=release}.
> Could not find runtime-2.0.0.aar (androidx.room:room-runtime:2.0.0).
Searched in the following locations:
https://dl.google.com/dl/android/maven2/androidx/room/room-runtime/2.0.0/runtime-2.0.0.aar
* 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.
==============================================================================
5: Task failed with an exception.
-----------
* What went wrong:
Execution failed for task ':app:checkDebugDuplicateClasses'.
> Could not resolve all files for configuration ':app:debugRuntimeClasspath'.
> Failed to transform runtime-2.0.0.aar (androidx.room:room-runtime:2.0.0) to match attributes {artifactType=enumerated-runtime-classes, org.gradle.status=release, org.gradle.usage=java-runtime}.
> Could not find runtime-2.0.0.aar (androidx.room:room-runtime:2.0.0).
Searched in the following locations:
https://dl.google.com/dl/android/maven2/androidx/room/room-runtime/2.0.0/runtime-2.0.0.aar
* 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.
==============================================================================
6: Task failed with an exception.
-----------
* What went wrong:
Execution failed for task ':app:desugarDebugFileDependencies'.
> Could not resolve all files for configuration ':app:debugRuntimeClasspath'.
> Failed to transform runtime-2.0.0.aar (androidx.room:room-runtime:2.0.0) to match attributes {artifactType=processed-jar, org.gradle.status=release}.
> Could not find runtime-2.0.0.aar (androidx.room:room-runtime:2.0.0).
Searched in the following locations:
https://dl.google.com/dl/android/maven2/androidx/room/room-runtime/2.0.0/runtime-2.0.0.aar
* 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.
==============================================================================
7: Task failed with an exception.
-----------
* What went wrong:
Execution failed for task ':app:processDebugMainManifest'.
> Could not resolve all files for configuration ':app:debugRuntimeClasspath'.
> Failed to transform runtime-2.0.0.aar (androidx.room:room-runtime:2.0.0) to match attributes {artifactType=android-manifest, org.gradle.status=release}.
> Could not find runtime-2.0.0.aar (androidx.room:room-runtime:2.0.0).
Searched in the following locations:
https://dl.google.com/dl/android/maven2/androidx/room/room-runtime/2.0.0/runtime-2.0.0.aar
* 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.
==============================================================================
8: Task failed with an exception.
-----------
* What went wrong:
Execution failed for task ':app:mergeDebugNativeLibs'.
> Could not resolve all files for configuration ':app:debugRuntimeClasspath'.
> Failed to transform runtime-2.0.0.aar (androidx.room:room-runtime:2.0.0) to match attributes {artifactType=android-jni, org.gradle.status=release}.
> Could not find runtime-2.0.0.aar (androidx.room:room-runtime:2.0.0).
Searched in the following locations:
https://dl.google.com/dl/android/maven2/androidx/room/room-runtime/2.0.0/runtime-2.0.0.aar
* 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.
==============================================================================
9: Task failed with an exception.
-----------
* What went wrong:
Execution failed for task ':haicycle:compileDebugKotlin'.
> 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
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.1.1/userguide/command_line_interface.html#sec:command_line_warnings
BUILD FAILED in 1m 7s
44 actionable tasks: 42 executed, 2 up-to-date

Compilation with Kotlin compile daemon was not successful
- 写回答
- 好问题 0 提建议
- 关注问题
- 邀请回答
-
1条回答 默认 最新
- CSDN专家-深度学习进阶 2021-09-10 14:07关注
可以参考下这篇文章,希望对你有帮助:
https://www.5axxw.com/questions/content/w2kdap本回答被题主选为最佳回答 , 对您是否有帮助呢?解决 无用评论 打赏 举报