Mexican singer Paulina Rubio reached an accord with authorities by which she will avoid facing trial in Miami for the dispute she had with police after a minor traffic accident here in June.

"Paulina Rubio agreed with the prosecutor to receive a series of training classes (related to traffic and road safety) that she can take via Internet, and make a $500 donation" to charity, Teresita Chavez, spokeswoman for the Miami-Dade State Attorney's Office, told Efe on Friday.

On Aug. 4 a Miami judge decided that the singer should be tried on charges of disorderly conduct and resisting arrest without violence.

But the parties subsequently reached a deal to avoid trial, largely thanks to the fact that "she has no criminal record and the charges are minor infractions," Chavez said.

Rubio had a run-in with police after her BMW hit another vehicle in Miami's Little Havana neighborhood.

When the cops arrived they asked her to move away from the accident to a safe place and show them her documents.

She looked for her documents, but did not follow police instructions to get out of her car and made several calls on her cell phone.

After Rubio ignored several warnings to comply with their orders, the officers arrested and handcuffed the singer, freeing her an hour later when she told them she had to breastfeed her 6-month-old boy.