I had an older Dell inspiron 15R that had similar issues where the AC adapter that came with the laptop was not recognized.

There was a problem with the adapter and possibly the power jack....