It turns out that the new calls were added in a new beta version of the core library, which Android Studio will not normally recommend using. Manually specifying
implementation 'androidx.core:core:1.17.0-beta01'
fixed this problem.