Be sure the vent is not clogged with lint; it will cause the dryer temp to be high and the thermal limiter to turn off the heating element repeatedly, so it will take a long time to dry a load.
Be sure you did not get a wire connected in the wrong place, or did not get the wrong part.
You...