They've tried these things here in Sweden, for decades. It has not worked, the opposite is true. Economic opportunity sounds nice but the 'economic opportunity' of robbing someone who made use of that economic opportunity and in such a way get the spoils without doing the toils keeps on winning out for some, no matter how many programs are created, how many youth centres are built, no matter how many integration programs are started. As to whether it is the lure of easy money, the false glamour of the bling-bling lifestyle as glorified by a significant part of rap and hip-hop artists, the 'rebel against the prevailing culture' attitude which permeates large areas or some other factor, something keeps on pulling increasing numbers of young boys and girls into crime.
Ineffective policing may be part of it, an alarmingly low number of violent crimes is solved here - ~10% of murders and violent crimes (the categories are combined in the report), %19% of sex crime including rape, ~6% of robberies and theft going all the way down to ~0.5% of bicycle theft cases [1,2]. The trend for the percentage of solved crimes has been going down for a very long time now so things are not improving, at all.
[1] https://www.bra.se/download/18.7d27ebd916ea64de5304de44/1585...
[2] https://www.bra.se/download/18.cba82f7130f475a2f1800010674/1...