汤姆的天马行空 2021-09-10 13:35 采纳率: 100%
浏览 933
已结题

Compilation with Kotlin compile daemon was not successful


> 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


  • 写回答

1条回答 默认 最新

  • 关注

    可以参考下这篇文章,希望对你有帮助:

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

问题事件

  • 系统已结题 10月1日
  • 已采纳回答 9月23日
  • 创建了问题 9月10日

悬赏问题

  • ¥15 关于#matlab#的问题:在模糊控制器中选出线路信息,在simulink中根据线路信息生成速度时间目标曲线(初速度为20m/s,15秒后减为0的速度时间图像)我想问线路信息是什么
  • ¥15 banner广告展示设置多少时间不怎么会消耗用户价值
  • ¥16 mybatis的代理对象无法通过@Autowired装填
  • ¥15 可见光定位matlab仿真
  • ¥15 arduino 四自由度机械臂
  • ¥15 wordpress 产品图片 GIF 没法显示
  • ¥15 求三国群英传pl国战时间的修改方法
  • ¥15 matlab代码代写,需写出详细代码,代价私
  • ¥15 ROS系统搭建请教(跨境电商用途)
  • ¥15 AIC3204的示例代码有吗,想用AIC3204测量血氧,找不到相关的代码。