Chosen Solution
When I plug my laptop in to charge I occasionally get a green light for a split second, then nothing. I took it into Apple and they said it was the IO board but it has water damage so they won’t repair it. I replaced the IO board and still get the same issue. It was working perfectly until the battery ran out. Any ideas?
IF the battery is bad it will not charge go to setting find battery they may tell you to replace battery. Age is not a factor if new.
Here’s a good Apple T/N Apple Portables: Troubleshooting MagSafe adapters. You may has a cloned charger which may have harmed your system! OEM MagSafe Chargers vs Cheap Imposters: Teardown for Truth & Lacking safety features, cheap MacBook chargers create big sparks Update (02/17/2020) If the port area got wet the one wire communication line (center pin) might have been damaged. Lets give this a try follow this guide MacBook Air 11" Mid 2013 I/O Board Replacement and if this part looks damaged, replace it MacBook Air 11" (Mid 2013-Early 2015) I/O Board
Try taking it to Apple and see what they say now. If that doesn’t work, check the battery port and clean it. It often gets lint, etc.