Chosen Solution

I just got a replacement Megasafe 2 charger from Apple for my MBA (Early 2017). However, often in the battery status drop-down, i see “Battery not charging” for which SMC reset should fix.. But in my case, it only a temp. fix, it next time i plug n again, “Battery not charging” appears in battery status again. So, very frustrating. This is also a new charger,but the LED keeps going dim, so i’m turning my attention to a port issue. System Report mentions battery condition is : Normal and cycle count is only: 148. Sometimes i can get it to charge though. Suggestions to fix?

If the MagSafe LED is going off and on then your I/O board board likely needs either cleaning or replacing. Try using a cotton swab (Q-Tip) just damp with some 85% isopropyl alcohol to wipe it down. Otherwise here’s the replacement part MacBook Air 13" (Mid 2013-2017) I/O Board

I had the I/O flex cable and board replaced after spilling milk tea on it but this battery not charging issue happened after the replacement. My macbook was fine before that @Enal Farid I have the same model and had the i/o board and flex cable replaced after spilling tea on my macbook but this battery not charging issue happened after that replacement sk what could be the problem?