The invention discloses a flexible automatic assembly production line for oil cylinders. The flexible automatic assembly production line for oil cylinders comprises a transfer mechanism, a lifting mechanism, an oil injection mechanism, a push rod mechanism, a guide mechanism, a sleeve feeding mechanism, a sleeve replacing mechanism, a first servo jacking mechanism, a first limiting mechanism, an auxiliary power assisting mechanism, a first moving mechanism, a second limiting mechanism, a guide sleeve screwing mechanism, a second servo jacking mechanism, a rotation stopping mechanism, a pressing mechanism, a rotation stopping adjusting mechanism and a second moving mechanism. The transfer mechanism enables a cylinder body to enter from the left end of the production line, the cylinder bodysequentially passes through various structures and then is output from the right end, the transfer mechanism transfers the cylinder body to the lifting mechanism, the lifting mechanism lifts the cylinder body, the transfer mechanism automatically withdraws, and the lifting mechanism transfers the cylinder body to a next positioning tool. The flexible automatic assembly production line for the oilcylinders is reasonable in design; and the production line is high in automation degree, stable in assembly process, standard in operation, reliable in assembly quality, high in production efficiencyand low in labor intensity, and workpieces are continuously and automatically transferred and assembled.