My macbook air has an X on its battery icon
Today my computer ran out of battery, I arrived home and plugged it, then I tried turning it on, when I turned it on, the battery had an X on its battery icon. It didn't have any porcentage, and the charger light was green. Then I unplugged the charger from the computer and it turned off, It didn't work until I plugged it again.
I already did my research and have done the reset procedure for SPM and PRAM and nothing works, I am trying to update my computer to high Sierra software to see if it works with that software.
I also checked the hardware to see the battery info, and it says it isn't charging, it isn't charge remaining or anything.
Please HELPPPPP
MacBook Air (2018 or later)