Had same problem. Battery trick worked for me.
I've had my phone for about 7 months. Was working normally then I was charging it and the charging kept going off and on until it died. Then it wouldn't charge at all. I tried turning on the phone, different charger, different cable, nothing...