Unity freezes when building a project - when Building Resources Folder

A few days ago, everything was working fine, but from now on, at any project I tested, when I tell Unity to Build it, it will freeze at “Building resources folder”. When I check the project page, it will not be there (it will freezes before the folder is created). I need to kill the Unity task to unfreeze it. Re-installing has not fixed this, I have no idea what to do.

try to clean ProjectSettings (or just remove ProjectSettings.asset in ProjectSettings folder)

I Found The Problem! Basically its the trees, if you have trees in your screen they take ages to build if you remove the trees then its faster, so it doesn’t freeze it just tries to build all them trees

It might seem overly simple, but I resolved this problem when I had it by closing and re-opening Unity.