The simplest solution for this is to go to the
Player Setting -> Other Settings -> Target API Level
And changing the API level to something lower (for me 'API level 33' worked fine)