From my experience, I found that simpley switching off your tablet plugging in the charger and then switching it back on can sometimes work.
or
If you switch off your tablet, plug I charger into mains and then switch it back on. If the 'X' is still over the battery icon then un plug the charger and plug it back in (slowly) and then it should work.
Hope this solves your problem :)