Start from the beginning.
If you have a quick link in the chain, remove the chain. Then put both front and rear mechs in the smallest sprocket positions and release the cables, no need to remove the cables from the bike.
If you have a hanger alignment tool then check the hanger for alignment. Lots of people go “it’s a new hanger, it’s not bent!” Most shifting problems are due to a bent hanger.
Then set the hi and lo stops on both the mechs without a chain. Set the B screw, the top jockey wheel should be approx 10mm from largest sprocket on the cassette when you push it across by hand. Refit chain, refit the cables ensuring the shifters are in the smallest sprockets and the barrel adjusters are would all the way in, then back out 1 full turn. Double check the cable clamp is in the groove.
Adjust the cable tension so 1 click takes the rear mech up one sprocket on the cassette, then back down without any hanging up. Once it’s correct on one click you shouldn’t have to adjust it to make it go across all of the cassette. If you do then the hangers bent.
The front mech can be troublesome when in extremes of the cassette, big-big, small-small, and can rub. The odd bend with mole grips or position can help. I struggle to get the front to work well on my crosser. I can’t find a front mech that works with 46-36 and MTB shifters.