ForgeGradle 操作导致 IntelliJ 崩溃
ForgeGradle actions causing IntelliJ to crash
当我尝试使用 IntelliJ 构建或同步用 Kotlin 编写的 Forge mod 时,gradle 进程失败
查找任何输出的方法来自日志:
[ 34623] WARN - #c.a.t.i.g.p.s.GradleSyncState - No error message given
java.lang.IllegalStateException: No error message given
at com.android.tools.idea.gradle.project.sync.GradleSyncState.syncFailed(GradleSyncState.kt:235)
at com.android.tools.idea.gradle.project.sync.GradleSyncState.access$syncFailed(GradleSyncState.kt:88)
at com.android.tools.idea.gradle.project.sync.GradleSyncState$SyncStateUpdater.onEvent(GradleSyncState.kt:506)
at com.intellij.build.AbstractViewManager.onEvent(AbstractViewManager.java:116)
at com.intellij.openapi.externalSystem.service.execution.AbstractOutputMessageDispatcher$onEvent.accept(AbstractOutputMessageDispatcher.kt:21)
at com.intellij.openapi.externalSystem.service.execution.AbstractOutputMessageDispatcher$onEvent.accept(AbstractOutputMessageDispatcher.kt:14)
at com.intellij.openapi.externalSystem.service.execution.AbstractOutputMessageDispatcher$close.accept(AbstractOutputMessageDispatcher.kt:41)
at com.intellij.openapi.externalSystem.service.execution.AbstractOutputMessageDispatcher$close.accept(AbstractOutputMessageDispatcher.kt:14)
at java.base/java.util.concurrent.CompletableFuture.uniWhenComplete(CompletableFuture.java:859)
at java.base/java.util.concurrent.CompletableFuture$UniWhenComplete.tryFire(CompletableFuture.java:837)
at java.base/java.util.concurrent.CompletableFuture.postComplete(CompletableFuture.java:506)
at java.base/java.util.concurrent.CompletableFuture.complete(CompletableFuture.java:2073)
at com.intellij.build.output.BuildOutputInstantReaderImpl$readerRunnable.run(BuildOutputInstantReaderImpl.kt:78)
at com.intellij.util.ConcurrencyUtil.runUnderThreadName(ConcurrencyUtil.java:212)
at com.intellij.util.ConcurrencyUtil.lambda$underThreadNameRunnable(ConcurrencyUtil.java:200)
at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory.run(Executors.java:668)
at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory.run(Executors.java:665)
at java.base/java.security.AccessController.doPrivileged(Native Method)
at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory.run(Executors.java:665)
at java.base/java.lang.Thread.run(Thread.java:829)
我使用的是最新版本的 ubuntu,并已尝试删除 .gradle 文件夹、使缓存失效并重新下载项目。
感谢您的帮助
我修复了它,我将我的系统 java 版本设置为 java 17,而不是 java 8。在我更改备用并删除我的 .gradle 有效的文件夹
当我尝试使用 IntelliJ 构建或同步用 Kotlin 编写的 Forge mod 时,gradle 进程失败 查找任何输出的方法来自日志:
[ 34623] WARN - #c.a.t.i.g.p.s.GradleSyncState - No error message given
java.lang.IllegalStateException: No error message given
at com.android.tools.idea.gradle.project.sync.GradleSyncState.syncFailed(GradleSyncState.kt:235)
at com.android.tools.idea.gradle.project.sync.GradleSyncState.access$syncFailed(GradleSyncState.kt:88)
at com.android.tools.idea.gradle.project.sync.GradleSyncState$SyncStateUpdater.onEvent(GradleSyncState.kt:506)
at com.intellij.build.AbstractViewManager.onEvent(AbstractViewManager.java:116)
at com.intellij.openapi.externalSystem.service.execution.AbstractOutputMessageDispatcher$onEvent.accept(AbstractOutputMessageDispatcher.kt:21)
at com.intellij.openapi.externalSystem.service.execution.AbstractOutputMessageDispatcher$onEvent.accept(AbstractOutputMessageDispatcher.kt:14)
at com.intellij.openapi.externalSystem.service.execution.AbstractOutputMessageDispatcher$close.accept(AbstractOutputMessageDispatcher.kt:41)
at com.intellij.openapi.externalSystem.service.execution.AbstractOutputMessageDispatcher$close.accept(AbstractOutputMessageDispatcher.kt:14)
at java.base/java.util.concurrent.CompletableFuture.uniWhenComplete(CompletableFuture.java:859)
at java.base/java.util.concurrent.CompletableFuture$UniWhenComplete.tryFire(CompletableFuture.java:837)
at java.base/java.util.concurrent.CompletableFuture.postComplete(CompletableFuture.java:506)
at java.base/java.util.concurrent.CompletableFuture.complete(CompletableFuture.java:2073)
at com.intellij.build.output.BuildOutputInstantReaderImpl$readerRunnable.run(BuildOutputInstantReaderImpl.kt:78)
at com.intellij.util.ConcurrencyUtil.runUnderThreadName(ConcurrencyUtil.java:212)
at com.intellij.util.ConcurrencyUtil.lambda$underThreadNameRunnable(ConcurrencyUtil.java:200)
at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory.run(Executors.java:668)
at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory.run(Executors.java:665)
at java.base/java.security.AccessController.doPrivileged(Native Method)
at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory.run(Executors.java:665)
at java.base/java.lang.Thread.run(Thread.java:829)
我使用的是最新版本的 ubuntu,并已尝试删除 .gradle 文件夹、使缓存失效并重新下载项目。
感谢您的帮助
我修复了它,我将我的系统 java 版本设置为 java 17,而不是 java 8。在我更改备用并删除我的 .gradle 有效的文件夹