If your laptop doesn't recognize its battery and shows “No battery detected,” follow these steps. First, restart your laptop. Then, update or reinstall corrupted battery drivers in Device Manager.
Battery is charging fine now. First thing to try is a new OEM Dell adapter. If that is recognized, you're set. If not, next thing is to replace the DC jack in the system. One of those will likely solve the problem. It the adapter is still not recognized, though - it's the charge circuit that's bad and the mainoboard will need replacement.
The "No battery is detected" error can sometimes be caused by a problem with your PC's motherboard. In such cases, updating your PC's BIOS can help resolve the issue. However, make sure that both the battery and the charger are plugged in during the process. Updating BIOS varies from device to device.
When the AC adapter fails to work, the laptop battery does not charge, and the laptop does not turn on or operate unless the battery is sufficiently charged. Follow the instructions in this article to troubleshoot AC adapter issues, if you notice the following symptoms: AC adapter is not able to charge the battery.
Why does my laptop automatically turn off if it works only on battery?
Now the laptop can be turned on and charged. The battery still cannot be detected somtimes. So it will automatically turns off when it works only on battery. That is minor issues though. In that case, it is more likely with the battery driver issue or possible hardware problem of the device already.
When a simple restart doesn't fix the issue, you may consider performing a battery drain. During this process, your device will reset and clear the error. So, this may solve the 'No Battery Is Detected' issue and other system issues at the same time. Let's see how you can perform battery drain on your device:
Can I use a battery from other laptops with my Dell laptop?
Do not use a battery from other laptops with your Dell laptop. CAUTION: If the Dell AC adapter is too hot to touch, discontinue using the AC adapter and contact Dell Technical Support. NOTE: Like most laptops, Dell laptops use lithium-ion batteries, which can swell due to the battery's age, the number of charge cycles, or exposure to high heat.