When was the first black church built?

I presume that you mean:
(a) A Church exclusively for black people
(b) You are talking about the USA

In which case the answer is 1773, and it was founded by George Leile and Andrew Bryan.