A resin encapsulated semiconductor device is manufactured by applying, for example, an ordinary encapsulating process using an encapsulating resin such as an epoxy resin to the semiconductor substrate having a polyimide film pattern formed on the surface by using the photosensitive resin composition according to any of the first to third embodiments of the present invention.