@monkeyfish building structures doesn't use up any Hacking Power, so it wouldn't have anything to do with that. So you were trying to build a solar panel? If that is the case, then you have enough resources to build it. But what you're saying is that when you tap on "BUILD" for the Solar Panel, you get the screen popup that says "You do not have enough resources"? Is this correct?
You didn't have enough resources at this point, correct?
At this point, you had enough resources to build the CM, but got a popup that said you didn't have enough resources, and this continued even after you restarted the game, correct?
At this point, I am assuming that you had built a vault and deposited all these resources into your storage, leaving you with roughly 200 of each resource? Then you built the CM, but it took more resources than it was supposed to? I hope I got all of the facts straight.