Iphone 4 charging is not supported with this accessory?

I have tried different chargers, different ways of charging it, I've cleaned the dock with air, i've tried to turn it on airplane mode, nothing works, if you know something could you please help.

* Plug in your iPhone to your computer

* When you semessagemessage "Charging is not supported with this accessory" press dismiss and hold it.

* while holding dismiss, unplug the charger from the iphone then plug it again i had to do it like 4 or 5 times