A Queens man shot in a shootout with cops was charged Saturday with attempted murder.

Jamel Ethridge, 38, fired at two cops Friday evening inside the Baisley Houses at 116-80 Guy R Brewer Boulevard in Jamaica, said police.

Ethridge’s shots missed. The officers fired at him after he refused their orders to drop his 9mm pistol. One police bullet struck Ethridge in the left leg.

Ethridge was treated at Jamaica Hospital, the source said. He was released by Saturday afternoon and taken to the 113th Precinct in Jamaica.

Police recovered Ethridge’s pistol at the scene.

Ethridge served five years in prison for attempted murder. He’s also been arrested several times for criminal possession of a weapon.

“They’ve been having problems with him … He has a bad history,” said a building resident who asked not to be identified.

Ethridge also faces charges of unlawful weapons possession, reckless endangerment and menacing in the Friday incident.