So when you right click on your capital / war factory on the strategy map to buy units you have 0 / X gold, and 0 / 0 population?
The AI is behaving like its difficulty is set to None. If you are playing on Casual, try changing it to easy for a battle and then back down, or something.