The invention discloses a stress sensor with a self-repairing ability and a preparation method thereof. according to the preparation method, a one-dimensional metal nanowire, a two-dimensional inorganic nanosheet, hydrogel functional polymers, an additive and the like are compounded to prepare a nanocomposite colloidal printing ink with rheological characteristics, and the colloidal printing ink is printed on a wearable substrate through screen printing to prepare the repairable stress sensor having a shell-like bionic structure, wherein the one-dimensional metal nanowire provides a conductivenetwork structure for reducing resistance of the sensor; the two-dimensional inorganic nanosheet forms a layered strcture for improving sensitivity of the sensor; and a reversible dynamic cross-linking point is formed among the repairable hydrogel functional polymers, the two-dimensional inorganic nanosheet and the additive, so that the device has repairable performance. The prepared stress sensor has the advantages of large operating strain range, high sensitivity, repairable property after overload damage and the like, and has great application prospects in the fields of artificial electronic skin and biomimetic robots.