My sister now uses my old 2012 nexus 7 which up to lately has had no problems. She came to me the other day saying that it doesn't charge any more and decides on a day to day basis whether it will switch on or not. It showed the battery icon always with a red exclamation mark, never charging, never changing.
When it's open make sure you have a good look around, it's not very often you get to see what's inside your device. In the picture below I have circled the problem area. This is where the battery connects to the nexus. In my picture there is a piece of tape that runs over this plug to keep it in place. On my sisters nexus, this piece of tape was not present I found on hers that the plug wasn't pushed all the way in. This was definitely the cause of the problem.
While the back was off I restarted the device just to make sure it was fixed. It was so I put the back back on!Hope this saves somebody time and effort. If you did find this useful please +1 and share, also don't forget to check out the rest of my blog.