How is taking an AP test twice looked upon by colleges?

I’m retaking the APUSH exam in hopes of scoring higher to receive credit. I’ve already been admitted and confirmed my spot at my college, but I was wondering if the college could refuse to give me credit because it was retaken.

No. You could take it 4 times for all they’d care. At most colleges, AP scores are sent directly to the registrar’s office, bypassing admissions, and the clerk there processing them is really not going to care.

No problem at all. @skieurope is correct.