Cops discovered Alexis Anderson with a gunshot wound to the head inside a residence on 106th Road near 180th Street at about 11:45 p.m. on June 18 and she was pronounced dead at the scene, officials said.

Police previously said the residence, which is abandoned, was a squatter location that was also used as a drug den.

Amin Abdullah, 20, was taken into custody on Thursday and charged with murder and criminal possession of a weapon, police said. The June 19 arrest came after a medical examiner deemed Anderson’s death as a homicide.

“The defendant is accused of taking the life of a young girl who had her whole life ahead of her,” Brown said. “This case is another unfortunate example of the senseless gun violence that seems to more and more permeate our society.”

According to Brown, a witness saw Abdullah and Anderson get into a verbal argument on Wednesday in front of a room on the second floor of the 177-38 106th St. residence. The witness, who then went to separate room, said between 11 and 11:43 p.m. they heard a noise that sounded like a pop.

Abdullah then allegedly went into the witness’ room and together with the witness went back to the front room where the witness saw Anderson laying on the floor with what appeared to be blood on her head, Brown said.

According to the district attorney, Abdullah allegedly first told detectives that Anderson shot herself but later admitted he had shot her in the head with a revolver.

Abdullah is currently being held pending arraignment in Queens Criminal Curt and if convicted he faces up to 25 years to life in prison.