Was the dryer used for the first time?
A new electric heating element in an electric dryer may have an odor. The odor will be gone after the first couple of cycles.
Is the dryer located in an area where paint, stain or varnish was recently used?
Ventilate the area where the dryer is located if it has recently been painted, stained or varnished.
When odors or fumes are gone from the area, rewash and dry the load. The odor is on the load because the dryer pulls in surrounding room air to dry the load. To avoid this, do not run the dryer while painting, varnishing or refinishing near the dryer.
CLICK HERE for information on how to clean the dryer drum.