If you’re using Android Studio you may need to update your Build Variants. On version 2024.2.1 I had to choose from sidebar Build Variants > [ Re-import with defaults] (button at bottom right of panel)