All my projects stopped working. Sync Failed. Even new project wont sync

已回答

Hello, I can't find out why this is happening. I even reinstalled the IntelliJ idea two times. I am using Github private and syncing projects from one PC to another.

On one PC, everything is working. I can create a new project, work on an existing project from Github, and everything compiles and run. But on my other computer, it had a problem with new projects, but there was no problem with Github projects. But now, suddenly not even syncing.

When I create a new project, Kotlin - Compose Desktop, it will fail to sync. The only error is "Gradle sync failed in 63 ms".

When I create a new project, TornadoFX (somehow there is no Gradle), it's the same; it will fail to sync. The only error is "Gradle sync failed in 72 ms".

Even when I create pure Kotlin Gradle project, its the same problem.And there are no other errors, just this sync error. And also, Code Insight is not working. I don't even think a screenshot will show something different than sync failed.
I am at my wit's end.

System info:

Intellij Idea 2022.1.1

Build #IC-221.5591.52, built on May 10, 2022


Runtime version: 11.0.14.1+1-b2043.45 amd64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.

0

Hello,

Does it make a difference if you disable all non-bundled plugins (except for Kotlin), and restart the IDE? File | Settings | Plugins | ⚙️ | Disable all downloaded plugins

If the error is the same, please provide the entire zipped directory generated with Help | Collect Logs and Diagnostic Data. You can upload it to https://uploads.jetbrains.com/ and provide the upload id here.

 

0

Hello, and thanks for your reply. I have a new installation of IntelliJ Idea with Disabled all downloaded plugins. There is no change, the problem is the same. I`m starting to suspect my Windows operating system.


The diagnostic data is uploaded here, Upload id:

2022_05_31_48Yy8ZmcSoQHnWec (file: idea-logs-20220531-2247076457565862173134587.zip)

0

Thank you. The error is:

Unable to determine version for JDK located at C:\Users\Peter\.jdks\azul-15.0.7. 
Reason: Unexpected command output:

Is the JAVA_HOME env variable defined on your computer?

Does the version of Java defined as your Project JDK (azul-15.0.7) work with Gradle in the system command line? What if you set it as the Project JDK for a non-Gradle project in IDEA, and build and run it - does it work?

Did you try installing other JDKs?

It could be that IDE is unable to run the Java executable from C:\Users\Peter\.jdks\azul-15.0.7 to determine its version. It may be caused by antivirus/firewall, or other software blocking the IDE processes. If so, please try disabling such software, or make sure that IDE config/cache directories, IDE installation home, JDK installation home, and project files are all excluded from the scan.

0

Hello, and thanks.
The problem was caused by antivirus software. Uninstalled the entire thing, and all is working. I need to reinstall, configure antivirus and firewall, and don't let my children near my PC (or just my account).

Again, BIG Thanks.

0

请先登录再写评论。