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

Viewed 5178

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?

7 Answers

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".

--EDIT, 8/12/2022-- Longer term I've found actually that it didn't fully work and I ended up abandoning trying to keep it on OneDrive.

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

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.

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.

I also get this issue in WSL ubuntu, it was caused by some files in sources are not readable (permissions 000), change them to 644 then build ok.

I had this issue and tried everything on this thread without success. Android Studio tells to try to build with --info to try and catch the problem, I tried and it turns out I had copied an invisible file (0 kb) to the assets and that broke the build.

My answer is not very helpful as is but it may steer the person who reads this in the right direction.

I was able to fix my error by going to File and clicking Reload all from Disk.

Related