UPDATED 5/12/19 3:18 p.m. ET: Rolling Loud released a statement clarifying its relation to Kodak Black's situation.

"Kodak Black was not arrested at Rolling Loud," the statement said. "He was arrested on his way to the festival and we have no knowledge of what led to the arrest since he was not on festival property."

See original story below.

Kodak Black's legal troubles keep piling up.

According to the Miami Herald, the 21-year-old rapper was arrested Saturday night shortly before he was set to hit the stage at Rolling Loud Miami. Podcaster Adam22 posted footage of Kodak's arrest:

Sources told the outlet Kodak—whose real name is Bill Kapri—was arrested by federal agents and Miami-Dade police on state and federal firearm charges.

Kodak was arrested at the U.S.-Canada border last month, after customs agents allegedly discovered marijuana and a loaded firearm inside his vehicle.

Complex has reached out to Kodak's team for comment. Stay tuned as more details about his arrest become available. 

Lil Wayne also canceled his Rolling Loud hours before his scheduled performance. The rapper informed fans about his decision, claiming he refused to be "checked" on by police.

This story is developing.