Error when compiling

Hello, I am getting this error when compiling and I dont know why

C:\Users\Phoen\AppData\Local\Arduino15\packages\arduino\tools\arm-none-eabi-gcc\4.8.3-2014q1/bin/arm-none-eabi-ar: unable to rename ‘core\core.a’; reason: Permission denied

exit status 1
Error compiling for board Proffieboard V2.

There is a bunch of possible reasons for permission problems in windows.
A fairly common one is antivirus getting in the way.
Another is that some process hangs and and keeps hold of the file so that it can’t be deleted.
So, I would start by simply rebooting and see if that helps.
If not, then try temporarily disabling whatever antirvirus software you’re using and see if that helps.

If neither helps, then we may need to find the problematic file and delete it manually.