China must prepare for difficult times as the international situation is increasingly complex, President Xi Jinping said on Wednesday, as the US-China trade war took a mounting toll on tech giant Huawei.