Generally it's best to get your weapon upgraded first. The standard build for the game encourages offensive play, so more damage = faster progress. Armour next, as that can have pretty big jumps in defence (but not enough to merit upgrading first) to satisfy you until you get it 5*, which is when the juicy bonuses tend to come out. Shields are typically always last as the bonuses are often marginal. Many gunners can successfully run the hardest missions with a wetpaper 3* Swifty, so that shows that some practice/skill/experience can nullify a shields urgency, whereas armour can affect damage bonuses, resistances, asi etc (and otherwise be very worth upgrading).
Basically, get your primary weapons as good as you can, then think about armour to suit your class.