A resin encapsulated semiconductor device can be manufactured by applying 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 the particular method using a photosensitive resin composition according to the fourth embodiment of the present invention.