Before you can screen record on your Android, you'll need to enable the option in your phone's Quick Settings menu.
Head to Settings > Security and privacy on a Pixel, or Settings > Google > All Services on other phones to enable Advanced ...