The rapper said on social media Saturday that he would not perform at the Rolling Loud festival at Hard Rock Stadium in Miami Gardens because police "made it mandatory" that he was searched before the show.
It wasn't clear Sunday which police agency or security company was involved.
The rapper, whose real name is Dwayne Michael Carter Jr., was a headliner at the show. In his Twitter post, he said he couldn't go on.
"I do not and will not ever settle for being policed to do my job," he said in the post.
Officials say Florida rapper Kodak Black was arrested on federal and state weapons charges just before he was to perform at the festival.
The U.S. Marshals office says in a news release that the 21-year-old Black was taken into custody Saturday at the Rolling Loud Music Festival. The statement didn't elaborate.
Authorities say Black will make an initial appearance in Miami federal court Monday. Court records don't list a lawyer for him. His real name is Bill Kapri.
The rapper has been arrested numerous times previously, including last month on drug and weapons charges as he crossed from Canada into the U.S.
The Bureau of Alcohol, Tobacco, Firearms and Explosives and Miami-Dade County police were also involved in the most recent arrest.