Chosen Solution

My Mac wont charge or hold a charge. It will power on but only works if plugged in and as soon as it is unplugged it shuts off. Sometimes it says 0% and looks like it wants to charge and sometimes it just has a X in the battery icon. Have replaced battery once, still wont hold charge.

Sometimes new batteries are bad right out of the box… especially the cheap Chinese ones. Talk to your supplier. At one time BestBuy had a bunch of bad batteries they were selling. I once had strange behavior from a battery (X in menu bar sometimes, not charging sometimes, not powering on) turns out the battery was cracked. You couldn’t tell until you lifted the battery out of the computer and held it by one side only. Apparently the way I picked up the computer would/wouldn’t torque the case enough to cause/stop the behavior by opening or closing the crack. If this answer is acceptable please remember to return and mark it.

Check battery condition .