Chinese smartphone giant Xiaomi will build a plant in Beijing that produces 300,000 vehicles annually for…