During development, we'll run into different kinds of problems. We will address a few common ones.
When Gradle tasks fail and the error is not clear enough, you can try adding
--debug to the tasks to expand the error description: for example,
gradlew desktop:dist --debug.
A command that is useful for fixes is
gradlew clean. You'll use this command often.
It's confirmed that AVG Antivirus causes
gradlew desktop:dist to fail. Add an exception to the antivirus.
Sometimes, IDEs fail randomly; a solution that we found on IntelliJ IDEA is reindexing. You can click on File | Invalidate Caches / Restart… ...