m0useanswered grow question a year ago in addition to what other shave said, you can also dry for to long or to hot.
Terpenes are volatile and give weed its characteristic aromas. The plant will not produce any more terpenes after its harvested and if the temps are high the terpenes with low boiling points will off gas much faster.
UV/Light & High RH can also affect these outcomes. High RH because it encourages moulds and they will rot out the cannabis and UV because it will degrade the Terpenes. Time is the last factor, even if your environment is perfect in terms of temps. rh and no light, Drying to long will cause more and more of the terpenes to off gas and loose the smell your looking for.
I dry for about 7-10 days and then trim it all up and put it into jars to cure, I store the jars out of light and seal em up, burp them as needed "more at the beginning, less as it ages" and its smells will mature. If it starts to smell like cat piss of ammonia it means the buds where not dry enough and need more time outside the jar. The microbes will help cure or ferment in a way the buds in the jar and provide a smooth smoke and pleasant experience. I cure my buds for a min of 3 months before consuming unless it going to be made into Hash or edibles then w/e works.
One option to help fix this is a humidity pack infused with terpenes. Some companies have released humidity packs that have terpenes infused into the pack and when you store your weed and cure it with this it gains some extra smells. Its kinda a trick for not doing a good job but its an option if you want a quick fix. I myself would not use this and just turn it all into edibles. infuse some coconut oil or butter and cook with it.
Good Luck!