EM , magnetic field at centre of a carrying circular loop

The question is to find the magnetic field at the centre of a current carrying circular loop of radius R, where the current = I

Okay so I’m trying to do this by both Amp’s Law and Biot Savarts Law, and I can’t get my answers to agree.

First method – Biot Savarts Law:

B=$\frac{I\mu_{0}}{4\pi}$$\int$$\frac{dl X \hat{n}}{n^{2}}$

n$^{2}$=R$^{2}$

dl$X$$\hat{n}$=dl (as |n|=R is always perpendicular to a given line element dl)

=> B=$\frac{I\mu_{0}}{4\pi}$$\int$$\frac{dl X \hat{n}}{n^{2}}$=$\frac{I\mu_{0}}{4R^{2}\pi}$$\int$dl=$\frac{I\mu_{0}}{4R^{2}\pi}$2R$\pi$=$\frac{\mu_{0}I}{2R}$

Second method – Ampere’s Law:

$\oint$B.dl=$\mu_{0}$I(enclosed)

So B$\oint$dl=$\mu_{0}$I

B2$\pi$R=$\mu_{0}$I

=> B=$\frac{\mu_{0}I}{2πR}$