In this paper, we present an extrusion printing technique for producing spherical and cylindrical plano-convex microlens arrays with controllable feature dimensions. This technique employs a robotic adhesive dispenser for robotically controlled microextrusion of ultraviolet (UV) curable polymer onto a glass substrate surface to directly deposit the microlens arrays. It provides a simple and flexible alternative to fabricate both spherical and cylindrical microlens arrays.