Execution failed for task ':unityLibrary:BuildIl2CppTask'. Process 'command '/Users/im700/Documents/work/apps/testpkg/unityLibrary/src/main/Il2CppOutputProject/IL2CPP/build/deploy/il2cpp'' finished with non-zero exit value 4
I got this error in my android project when I exported it and tried to build it, the problem is that it seems to be solved by re-exporting the project, when I re-export it, the error disappears and the project successfully builds, but after a while, this error always appears again, although I may not even perform any action, and I re-export again and the error is again gone, and it appears again after a while, I have no idea what is even happening, and how to solve it, already killed several days for this.
I uninstalled and installed unity, android studio, changed sdk version back and forth, tried to edit def BuildIl2Cpp {... }, added and removed certain lines from it, according to answers from forums on similar problems, but nothing helps, no matter what I do the result is always the same, I re-export, everything works, build successful, some time passes, this error again, by the way, forgot to mention that all this I do on macbook m1, perhaps this has to do with the problem, because I just started working on it
Please, I would appreciate any help in this matter.