Coexistence of superconductivity and antiferromagentic order in Er
2O
2Bi with anti-ThCr
2Si
2 structure
Resistivity, magnetization, specific heat, and first-principle calculations show that Er$_2$O$_2$Bi with anti-ThCr$_2$Si$_2$ structure exhibits both superconductivity ($T_{\rm c}=1.23$ K) and antiferromagnetic order ($T_{\rm N}=3$ K). The superconducting upper critical field and electron-phonon coupling constant resemble those of the non-magnetic isostructural Y$_2$O$_2$Bi, and the Fermi surface is dominated by Bi $6p$ orbitals in both magnetic states, pointing to a common origin of superconductivity. Increasing oxygen content raises $T_{\rm c}$ and slightly lowers $T_{\rm N}$, suggesting competition between the two orders, possibly due to increased hole-type carrier density.