Troubleshooting common problems

During development, we'll run into different kinds of problems. We will address a few common ones.

Gradle

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.

Gradle

Antivirus

It's confirmed that AVG Antivirus causes gradlew desktop:dist to fail. Add an exception to the antivirus.

IntelliJ

Sometimes, IDEs fail randomly; a solution that we found on IntelliJ IDEA is reindexing. You can click on File | Invalidate Caches / Restart… ...

Get Building a 3D Game with LibGDX now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.