In an electric device having a package included an electric circuit element therein, a cooling fan is fixed on the package directly. The fan is formed of piezoelectric elements and a flexible cooling fin. The fan generates the cooling air flow due to vibration of the piezoelectric elements.