I think it does charge when use AC adapter. I tried different USB cable, type c to c, type c to a, and the one from phone package type c to a, all same result, files transfer working with those cable so cable are fine. I tried take out battery out and reinsert and restart the phone, still same.
Any settings on the phone blocking the charge?