'Gradle - "Changes are not tracked, unable determine incremental changes."

When running my LibGDX desktop project I sometimes get this error:

Changes are not tracked, unable determine incremental changes.

I've tried using Java 8 and 17. I'm using Gradle 7.4.2.

I've tried the changes mentioned here but they seem to be for a Kotlin project.

I'm struggling to find any more info on what is causing this.

What else can I try to resolve this?



Solution 1:[1]

This problem occurred for me because my project files were located within a OneDrive folder. To solve this issue; I right-clicked on my project folder and selected "Always keep on this device".

Solution 2:[2]

I had the same problem but the main reason that message shows up its because you have to save all your changes. Sometimes i forgot to save all changes and when rebuilding or rerunning that message appears to me too. That solves, in my case, the problem.

Solution 3:[3]

I also received this error message after successfully building the project a few times. "Build / Clean Project" solved.

Solution 4:[4]

I had the same problem and it would not let me just clean the gradle. I solved it by deleting my /android folder and running the build command afresh.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1
Solution 2 Paris Palacios
Solution 3 KoAn
Solution 4