The invention discloses a preparing method of polyimide aerogels and hybrid aerogels thereof, belonging to the field of aerogels. In the preparing of the polyimide precursor, the polyamic acid precipitated fiber having a large specific surface area is dissolved in an aqueous solution of triethylamine, then stirred and dissolved. And the thermal imidization is directly frozen and dried without a long sol-gel process to obtain the polyimide aerogels. At the same time, by introducing the filler with different functional characteristics, the functional diversity of polyimide hybrid aerogels is realized. The prepared hybrid aerogels can be used as flexible conductors, microstrip patch antennas, catalysts, water and oil separation membranes, high performance adsorbent materials, etc., and can be used in the fields of flexible wearable microelectronics, aerospace communications, photocatalysis and oil leakage, etc. The application scope of polyimide materials and aerogels materials is expanded, the value of products is enhanced, the preparing cycle is shortened, and its industrialization process is promoted.