I do not think this is a coincidence that tension between the US and China raises every time Trump has political issues, just like Russia suddenly finds ennemies when Putin faces discontent, or that Turkey fights kurds 10 times stronger when Erdogan feels threatened.
Pointing an ennemy is a great way to get away with many things, and works very well with all kinds of publics.