The Brits have managed to solve that issue; they use driving bands and sabot carriers on their APFSDS rounds in their rifled 120mm guns. This does however increase wear and tear on the gun.
Never said it's impossible or never done before, just more complex. The extra wear and tear on the barrel and the more complex thus expensive round makes it not a worthwhile endeavor for anybody not pigeon holed into a rifled gun.