it-swarm.com.de

IntellIj 2018.3 Java.lang.AssertionError, wenn das Gradle-Projekt aktualisiert wird

Ich habe seit 2 Tagen ein Problem mit Intellij. Wenn ich ein Gradle-Projekt aktualisiere, habe ich einen Fehler in der Konsole und ich habe Java 11 verwendet.

Ich suche überall, aber wenige Leute haben dieses Problem.

ausnahme beim Arbeiten mit einem externen System: Java.lang.AssertionError at org.jetbrains.plugins.gradle.service.project.BaseGradleProjectResolverExtension.populateModuleContentRoots (BaseGradleProjectResolverExtension.Java:272) at com.Android.tools.idea.gradle.project.sync.idea.AndroidGradleProjectResolver.populateModuleContentRoots (AndroidGradleProjectResolver.Java:185) at org.jetbrains.plugins.gradle.service.project.AbstractProjectResolverExtension.populateModuleContentRoots (AbstractProjectResolverExtension.Java:95) at org.jetbrains.plugins.gradle.service.project.AbstractProjectResolverExtension.populateModuleContentRoots (AbstractProjectResolverExtension.Java:95) at org.jetbrains.plugins.gradle.service.project.AbstractProjectResolverExtension.populateModuleContentRoots (AbstractProjectResolverExtension.Java:95) at org.jetbrains.plugins.gradle.service.project.AbstractProjectResolverExtension.populateModuleContentRoots (AbstractProjectResolverExtension.Java:95) at org.jetbrains.plugins.gradle.service.project.TracedProjectResolverExtension.populateModuleContentRoots (TracedProjectResolverExtension.Java:62) at org.jetbrains.plugins.gradle.service.project.GradleProjectResolver.doResolveProjectInfo (GradleProjectResolver.Java:382) at org.jetbrains.plugins.gradle.service.project.GradleProjectResolver.access $ 200 (GradleProjectResolver.Java:76) at org.jetbrains.plugins.gradle.service.project.GradleProjectResolver $ ProjectConnectionDataNodeFunction.fun (GradleProjectResolver.Java:879) at org.jetbrains.plugins.gradle.service.project.GradleProjectResolver $ ProjectConnectionDataNodeFunction.fun (GradleProjectResolver.Java:862) at org.jetbrains.plugins.gradle.service.execution.GradleExecutionHelper.execute (GradleExecutionHelper.Java: 217) at org.jetbrains.plugins.gradle.service.project.GradleProjectResolver.resolveProjectInfo (GradleProjectResolver.Java:141) at org.jetbrains.plugins.gradle.service.project.GradleProjectResolver.resolveProjectInfo (GradleProjectResolver.Java:76) at com.intellij.openapi.externalSystem.service.remote.RemoteExternalSystemProjectResolverImpl.lambda $ resolProjectInfo $ 0 (RemoteExternalSystemProjectResolverImpl.Java:37). at com.intellij.openapi.externalSystem.service.remote.AbstractRemoteExternalSystemService.execute (AbstractRemoteExternalSystemService.Java:58) at com.intellij.openapi.externalSystem.service.remote.RemoteExternalSystemProjectResolverImpl.resolveProjectInfo (RemoteExternalSystemProjectResolverImpl.Java:37) at com.intellij.openapi.externalSystem.service.remote.wrapper.ExternalSystemProjectResolverWrapper.resolveProjectInfo (ExternalSystemProjectResolverWrapper.Java:45) at com.intellij.openapi.externalSystem.service.internal.ExternalSystemResolveProjectTask.doExecute (ExternalSystemResolveProjectTask.Java:100) at com.intellij.openapi.externalSystem.service.internal.AbstractExternalSystemTask.execute (AbstractExternalSystemTask.Java:166) at com.intellij.openapi.externalSystem.service.internal.AbstractExternalSystemTask.execute (AbstractExternalSystemTask.Java:152) at com.intellij.openapi.externalSystem.util.ExternalSystemUtil $ 3.execute (ExternalSystemUtil.Java:554) at com.intellij.openapi.externalSystem.util.ExternalSystemUtil $ 5.run (ExternalSystemUtil.Java:659) at com.intellij.openapi.progress.impl.CoreProgressManager $ TaskRunnable.run (CoreProgressManager.Java:727) at com.intellij.openapi.progress.impl.CoreProgressManager.lambda $ runProcess $ 2 (CoreProgressManager.Java:164) at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun (CoreProgressManager.Java:582) at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress (CoreProgressManager.Java:532) unter com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress (ProgressManagerImpl.Java:87) at com.intellij.openapi.progress.impl.CoreProgressManager.runProcess (CoreProgressManager.Java:151) at com.intellij.openapi.progress.impl.CoreProgressManager $ 4.lauf (CoreProgressManager.Java:403) at com.intellij.openapi.application.impl.ApplicationImpl $ 1.run (ApplicationImpl.Java:314) at Java.util.concurrent.Executors $ RunnableAdapter.call (Executors.Java:511) at Java.util.concurrent.FutureTask.run (FutureTask.Java:266) at Java.util.concurrent.ThreadPoolExecutor.runWorker (ThreadPoolExecutor.Java:1142) at Java.util.concurrent.ThreadPoolExecutor $ Worker.run (ThreadPoolExecutor.Java:617) bei Java.lang.Thread.run (Thread.Java:745)

Kann mir jemand helfen?

Yohann

8
Yohannlog

Dies ist das Ticket des Fehlers (wie von Petr Rastegaev in den Kommentaren der Frage gesehen):

In dem Thread fand ich diesen Workaround, der für mich funktionierte:

Einstellungen -> Build -> Gradle -> "Separates Modul pro Quellsatz erstellen"

überprüft schlägt fehl, ungeprüft ist ok.

11
squaleLis

Ich hatte genau das gleiche Problem und musste IntelliJ auf 2018.2 herabstufen, um es zu beheben.

3
Izumi.H

Dies liegt wahrscheinlich an einem Problem bezüglich einer Abhängigkeit in Ihrem Projekt.

Überprüfen Sie diesen Thread: https://youtrack.jetbrains.com/issue/IDEA-202685#focus=streamItem-27-3265172-0-0

In meinem Projekt habe ich, wenn ich Gradle Build ausführte, eine Fehlermeldung bezüglich der fehlerhaften Abhängigkeit. Nachdem Sie dieses Problem gelöst haben, funktioniert Gradle Sync normal.

0
Jérémy L.