Depends on parameters of " solving " . If you mean reducing OD's , reducing gang violence, corruption, property crime, and armed robberies in general, there is a remedy .
Legalize. Full legalize, not half way like decriminalize or gov't clinics . If it could be bought at the corner luquor store for the price of beer, no more astronomical price markups as with the current illegal practices . When its more or less affordable, the users no longer have daily $ requirements the size of a car payment, that can only be met by property crime that can only be met by property crimes and occasional carjackings. Reduced profits for street level dealing, reduces turf wars, deadly drug rips, and generally takes a big chunk of cash flow from street gangs . Lack of insane profits at middle and upper levels removes the economic motivations for corruption of various LE, Prosecutors, financial sector, etc.
Know strength levels and known purity will exponentially reduce OD deaths from inconsistant strengths and unknown other ingreadents.
Won't have much effect on raw numbers of regular users, but already anyone so inclined has no trouble having access.
That is a fantasy world.
the farther people dive headlong into their herion addiction, the less the are employable. No employer wants someone strung out on the job.
the junkie will contiune to be jobless, and turning to crime to fuel their habit.