Black and Decker 18V Battery
Two things. The battery is no longer charging or the battery charger no longer meters output from the charger circuit for a match with the battery voltage.
If you can borrow a charger you can check the battery charging capability. If not start with a new battery.